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

44 lines
1.7 KiB
PHP
Raw Normal View History

2024-01-19 10:48:49 +03:00
@extends('layouts.admin-layout')
@section('content')
<div class="container">
2024-01-19 19:17:08 +03:00
<h2>список Администраторов</h2>
2024-01-19 10:48:49 +03:00
<br>
2024-01-19 19:17:08 +03:00
<a href="{{ route('users.create') }}" class="btn btn-primary">Создать администратора</a>
2024-01-19 10:48:49 +03:00
<br>
<br>
2024-01-19 19:17:08 +03:00
<table class="table">
2024-01-19 10:48:49 +03:00
<thead class="border-b-2 border-solid border-black text-left" style="text-align: left">
<tr>
2024-01-19 19:17:08 +03:00
<th scope="col">id</th>
<th scope="col">name</th>
<th scope="col">email</th>
<th scope="col">действия</th>
2024-01-19 10:48:49 +03:00
</tr>
</thead>
<tbody>
@foreach($users as $user)
<tr>
2024-01-19 19:17:08 +03:00
<th scope="row">{{ $user->id }}</th>
2024-01-19 10:48:49 +03:00
<td>{{ $user->name }}</td>
<td>{{ $user->email }}</td>
2024-01-19 19:17:08 +03:00
<td><a href="{{ route("users.edit", $user) }}" class="btn btn-secondary">редактировать</a>
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
href="{{ route('users.destroy', $user) }}" class="btn btn-danger">
2024-01-19 10:48:49 +03:00
удалить
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<br>
<br>
2024-01-16 16:24:44 +03:00
2024-01-19 10:48:49 +03:00
{{ Form::open(array('url' => route('uploadfile'), 'method' => 'POST', 'files'=>'true')) }}
Select the file to upload.
{{ Form::file('image') }}
{{ Form::submit('Upload File')}}
{{Form::close()}}
</div>
@endsection