You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

74 lines
3.5 KiB

<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('lang.organization_management') }}
</h2>
</x-slot>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 bg-white border-b border-gray-200">
<div class="row">
<div class="col-md-5">
{{-- <h3 class="modal-title">{{ $result->total() }} {{ str_plural('Organization', $result->count()) }} </h3> --}}
<h3 class="modal-title">{{ $result->total() }} {{ __('lang.organization') }} </h3>
</div>
<div class="col-md-7 page-action text-right">
@can('add_system')
<a href="{{ route('organization.create') }}" class="btn btn-primary"> <i class="glyphicon glyphicon-plus-sign"></i> Create</a>
@endcan
</div>
</div>
<div class="result-set">
<table class="table table-bordered table-striped table-hover" id="data-table">
<thead>
<tr>
<th>ID</th>
<th>{{ __('lang.name') }}</th>
<th>Logo</th>
<th>{{ __('lang.contact') }}</th>
<th>{{ __('lang.created_at') }}</th>
@can('edit_system', 'delete_system')
<th class="text-center">{{ __('lang.action') }}</th>
@endcan
</tr>
</thead>
<tbody>
@foreach($result as $item)
<tr>
<td>{{ $item->id }}</td>
<td><label title="{{$item->intro}}">{{ $item->name }}</label></td>
<td><img src="{{ env('MEDIA_FILE_PATH', false) . $item->logo }}" width="40px" height="40px" alt="Logo"></td>
<td>
<p>{{ $item->hotline }}</p>
<p>{{ $item->email }}</p>
<p>{{ $item->address }}</p>
</td>
<td>{{ $item->created_at->format('d/m/Y') }}</td>
@can('edit_system', 'delete_system')
<td class="text-center">
@include('shared._actions', [
'entity' => 'organization',
'id' => $item->id
])
</td>
@endcan
</tr>
@endforeach
</tbody>
</table>
<div class="text-center">
{{ $result->links() }}
</div>
</div>
</div>
</div>
</div>
</div>
</x-app-layout>