@extends('layouts.admin') @section('header-content') @endsection @section('content')
Filter @if( Auth::user()->can('modify_customers')) @endif
All Customers
@if(!empty($shops[0]))
@foreach($shops as $key=>$shop) @endforeach
# Name Email Sales Officer Location Shop Type Customer Type Created at Action
{{$key+1}} {{$shop->name}} {{$shop->email}} @if(isset($shop->saleOfficer)){{$shop->saleOfficer->firstname.' '.$shop->saleOfficer->lastname}} @endif {{$shop->location}} {{$shop->shop_type}} {{$shop->customer_type}} {{$shop->created_at}}
  • @if( Auth::user()->can('modify_customers'))
  • @endif
{!! method_field('DELETE') !!} {!! csrf_field() !!}

{{ $shops->links() }}
@else

No Records Found

@endif
@endsection @section('footer-content') @endsection