@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
{{ $title }}
@if ($userPermissions->contains('customer.create')) Thêm khách hàng @endif
@forelse ($customers as $customer) @empty @endforelse
Tên khách hàng Hình ảnh Ngày Sinh Email Thao tác
{{ $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'))
@csrf @method('DELETE')
@endif
Không có khách hàng nào
@endsection @push('js') @endpush