@extends('layouts.master') @section('title', 'Customer Listing Report') @section('content')
Back to Dashboard
Customer Listing Report
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if(isset($customers) && $customers->count() > 0 && isset($fromCustomerId) && (isset($toCustomerId) || $fromCustomerId == 'all'))
Customer Results
@csrf
@foreach($customers as $customer) @endforeach
Code Account Name Contact Person Address Contact Numbers Email Category Sales Rep Ageing Area VAT TIN City Province Foreign Currency
{{ $customer->customer_code }} {{ $customer->customer_account }} {{ $customer->contact_person }} {{ $customer->address }} {{ $customer->contact_1 }} @if($customer->contact_2) / {{ $customer->contact_2 }} @endif {{ $customer->email }} {{ $customer->category->name ?? 'N/A' }} {{ $customer->salesRep->name ?? 'N/A' }} {{ $customer->ageAnalysis->description ?? 'N/A' }} {{ $customer->area->name ?? 'N/A' }} {{ $customer->vat ?? 'N/A' }} {{ $customer->tin ?? 'N/A' }} {{ $customer->city ?? 'N/A' }} {{ $customer->province ?? 'N/A' }} @if($customer->is_foreign_currency) {{ $customer->foreignCurrency->currency_name ?? 'N/A' }} @else No @endif
@elseif(isset($customers) && $customers->count() == 0 && isset($fromCustomerId) && (isset($toCustomerId) || $fromCustomerId == 'all'))
No customers found in the selected range.
@endif
@endsection @section('styles') @endsection @section('scripts') @endsection