add layout
This commit is contained in:
parent
04cb20e7a1
commit
a38c9f154f
|
@ -1,42 +1,44 @@
|
|||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<meta name="csrf-param" content="_token" />
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
<h2>список пользователей</h2>
|
||||
<br>
|
||||
<br>
|
||||
<a href="{{ route('users.create') }}"> создать пользователя</a>
|
||||
<br>
|
||||
<br>
|
||||
<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)
|
||||
<tr>
|
||||
<td>{{ $user->id }}</td>
|
||||
<td>{{ $user->name }}</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
<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>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
@extends('layouts.admin-layout')
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<h2>список пользователей</h2>
|
||||
<br>
|
||||
<br>
|
||||
<a href="{{ route('users.create') }}"> создать пользователя</a>
|
||||
<br>
|
||||
<br>
|
||||
<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)
|
||||
<tr>
|
||||
<td>{{ $user->id }}</td>
|
||||
<td>{{ $user->name }}</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
<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>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<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()}}
|
||||
{{ 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
|
||||
|
|
Loading…
Reference in New Issue