@extends('layouts.main') @section('content')

{{$title}}

@if(Auth::user()->canDo(['create_customer'])) Add customer @endif
@csrf


@foreach($customers as $customer) @endforeach
ID Date Name Phone Number Address Gender Car Customer Type Action
{{ $customer->id }} {{Carbon\Carbon::parse($customer->created_at)->format('Y-m-d')}} {{$customer->name}} {{$customer->phone_number}} {{$customer->address}} {{ $customer->gender }} {{ $customer->car_model." ".$customer->number_plate }} {{ $customer->customer_type }} Statement @if(Auth::user()->canDo(['view_sales'])) Transaction @endif @if(Auth::user()->canDo(['create_customer'])) Edit @endif
@if ($customers instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $customers->links() }} @endif
@endsection