
<?php
$admin = explode('/',$_SERVER['SCRIPT_URL']);
?>
<!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>
</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 = '{{$project->id}}/addproject_infos'" onmouseup="document.getElementById('Project').submit()"
                type="button" class="btn btn-info">{{$project->title}}</button>
    @endforeach
</form>
<form action="saveProject" method="post">@csrf
    admin
    <input type="text" name="admin" required/><hr>
    title
    <input type="text" name="title" required/><hr>
    body
    <input type="text" name="body" ><hr>
    admins
    <input type="text" name="admins" placeholder="mobin.hamed"><hr>
    <input type="submit">

</form>
<script type="text/javascript">
    function irantime(){



    }

</script>
</body>
</html>
