applicant-site/resources/views/users/index.blade.php

43 lines
1.3 KiB
PHP
Raw Normal View History

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