You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/views/admin/contact/contacts.blade.php

76 lines
2.4 KiB
PHTML

2 years ago
@extends('admin.adminlayout')
@section('page_title')
{{__("Contacts")}}
-
@endsection
@section('content')
<div class="container">
<h2>
{{__('Contact list')}}
</h2>
@include('starter-kit::component.err')
<form action="{{route('admin.contact.bulk')}}" method="post" class="bulk-action">
@csrf
<table class="table table-striped table-bordered ">
<thead class="thead-dark">
<tr>
<th>
<input type="checkbox" class="chkall"/>
</th>
<th>
{{__("Name and lastname")}}
</th>
<th>
{{__("phone")}}
</th>
<th>
{{__('Subject')}}
</th>
<th>
{{__("Date")}}
</th>
<th colspan="2">
{{__("Action")}}
</th>
</tr>
</thead>
<tbody>
@foreach ($cons as $c)
<tr>
<td>
<input type="checkbox" name="id[]" value="{{$c->id}}" class="m-2 chkbox"/>
{{$c->id}}
</td>
<td>
{{$c->full_name}}
</td>
<td>
{{$c->phone}}
</td>
<td>
{{$c->subject}}
</td>
<td>
{{$c->created_at->jdate('Y/m/d')}}
{{$c->time}}
</td>
<td colspan="2" class="vac">
<a href="{{route('admin.contact.show',$c->id)}}"
class="btn-outline-info btn-sm">
<i class="fa fa-eye"></i>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@include('starter-kit::component.bulk')
</form>
<div class="text-center pt-3">
{{$cons->links()}}
</div>
</div>
@endsection