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

{{$title}}

@if(Auth::user()->canDo(['create_customer'])) Add customer @endif
@foreach($customers as $customer) @endforeach
ID Date Name Phone Number District Location Gender Age Customer Type Referee Action
{{ $customer->id }} {{Carbon\Carbon::parse($customer->created_at)->format('Y-m-d')}} {{ $customer->name}} {{ $customer->phone_number}} {{ $customer->address}} {{ $customer->location($customer->id) }} {{ $customer->gender }} {{ $customer->age }} {{ $customer->customer_type }} {!! $customer->refrees($customer->id) !!} Statement
@endsection