add layout

This commit is contained in:
aslan 2024-01-19 10:48:49 +03:00
parent 04cb20e7a1
commit a38c9f154f
1 changed files with 43 additions and 41 deletions

View File

@ -1,42 +1,44 @@
<meta name="csrf-token" content="{{ csrf_token() }}"> @extends('layouts.admin-layout')
<meta name="csrf-param" content="_token" /> @section('content')
@vite(['resources/css/app.css', 'resources/js/app.js']) <div class="container">
<h2>список пользователей</h2> <h2>список пользователей</h2>
<br> <br>
<br> <br>
<a href="{{ route('users.create') }}"> создать пользователя</a> <a href="{{ route('users.create') }}"> создать пользователя</a>
<br> <br>
<br> <br>
<table class="mt-4"> <table class="mt-4">
<thead class="border-b-2 border-solid border-black text-left" style="text-align: left"> <thead class="border-b-2 border-solid border-black text-left" style="text-align: left">
<tr> <tr>
<th>id</th> <th>id</th>
<td>name</td> <td>name</td>
<td>email</td> <td>email</td>
<td>действия</td> <td>действия</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@foreach($users as $user) @foreach($users as $user)
<tr> <tr>
<td>{{ $user->id }}</td> <td>{{ $user->id }}</td>
<td>{{ $user->name }}</td> <td>{{ $user->name }}</td>
<td>{{ $user->email }}</td> <td>{{ $user->email }}</td>
<td><a href="{{ route("users.edit", $user) }}">редактировать</a></td> <td><a href="{{ route("users.edit", $user) }}">редактировать</a></td>
<td><a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?" <td><a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
href="{{ route('users.destroy', $user) }}"> href="{{ route('users.destroy', $user) }}">
удалить удалить
</a> </a>
</td> </td>
</tr> </tr>
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
<br> <br>
<br> <br>
{{ Form::open(array('url' => route('uploadfile'), 'method' => 'POST', 'files'=>'true')) }} {{ Form::open(array('url' => route('uploadfile'), 'method' => 'POST', 'files'=>'true')) }}
Select the file to upload. Select the file to upload.
{{ Form::file('image') }} {{ Form::file('image') }}
{{ Form::submit('Upload File')}} {{ Form::submit('Upload File')}}
{{Form::close()}} {{Form::close()}}
</div>
@endsection