
<?php
$admin = explode('/',$_SERVER['SCRIPT_URL']);
error_reporting(1);
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
    <title>Document</title>

    <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <link href="https://admin.borjeweb.com/adminpanel/summernote/dist/summernote.css" rel="stylesheet" />
</head>
<body style="margin: 12px;">
@include('adminpanel.includes.sidbar')

<br>
<form action="" method="post" id="Project" style=" padding: 12px">@csrf
    @foreach($projects as $project)

        <button onmousedown="document.getElementById('Project').action = 'https://admin.borjeweb.com/{{$project->id}}/addproject_works'" onmouseup="document.getElementById('Project').submit()"
                type="button" class="btn btn-info">{{$project->title}}</button>
    @endforeach
</form>
<form action="saveproject_works" method="post">@csrf

    titles
    <textarea class="form-control" name="titles" id="summernote" data-plugin="summernote" data-air-mode="true"  >
    </textarea>
    <input type="hidden" name="project_infos_id" value="{{$admin[1]}} ">
    <input type="submit">

</form>
<script>
    $(document).ready(function() {
        $('#summernote').summernote();
    });</script>
<!-- JavaScript Libraries -->
<!-- Template Javascript -->
<script src="https://admin.borjeweb.com/adminpanel/js/main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"></script>
<script type="text/javascript">
</script>
</body>
</html>
