@extends('admin.layouts.app') @section('title','Customers') @section('content') @php $hasFullAccess = auth('admin')->check() || (auth('staff')->check() && strcasecmp(auth('staff')->user()->designation?->name ?? '', 'Super Admin') === 0); @endphp @if(session('success'))
{{ session('success') }}
@endif
@if($hasFullAccess)@endif @foreach($customers as $key => $customer) @if($hasFullAccess)@endif @endforeach
S.No Customer Type Mobile Email City StatusAction
{{ $key + 1 }} {{ $customer->customer_name }} {{ $customer->customer_type }} {{ $customer->mobile }} {{ $customer->email ?? '-' }} {{ $customer->city ?? '-' }} {{ $customer->status }}
@csrf @method('DELETE')
@endsection