@php
use App\Helpers\PermissionHelper;
$userPermissions = PermissionHelper::getUserPermissions();
@endphp
@push('css')
@endpush
@extends('layouts.app')
@section('content')
@include('layouts.header', ['title' => 'Khách hàng'])
@php
$title = 'Danh sách khách hàng';
$addRoute = route('show-customer.create');
$tableId = 'customerTable';
@endphp
| Tên khách hàng |
Hình ảnh |
Ngày Sinh |
Email |
Thao tác |
@forelse ($customers as $customer)
| {{ $customer->full_name }} |
|
{{ \Carbon\Carbon::parse($customer->date_of_birth)->format('d/m/Y') }} |
{{ $customer->email }} |
@if ($userPermissions->contains('customer.edit'))
@endif
@if ($userPermissions->contains('customer.delete'))
@endif
|
@empty
| Không có khách hàng nào |
@endforelse
@endsection
@push('js')
@endpush