@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
| S.No |
Customer |
Type |
Mobile |
Email |
City |
Status |
@if($hasFullAccess)Action | @endif
@foreach($customers as $key => $customer)
| {{ $key + 1 }} |
{{ $customer->customer_name }} |
{{ $customer->customer_type }} |
{{ $customer->mobile }} |
{{ $customer->email ?? '-' }} |
{{ $customer->city ?? '-' }} |
{{ $customer->status }}
|
@if($hasFullAccess)
| @endif
@endforeach
@endsection