@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
    @foreach($errors->all() as $err)
  • {{ $err }}
  • @endforeach
@endif
@if($vendor->photo) Vendor Photo @else Vendor Photo @endif

{{ $vendor->name ?? 'N/A' }}

({{ $vendor->company_name ?? 'N/A' }})
Phone: {{ $vendor->primary_phone ?? 'N/A' }} NID: {{ $vendor->nid ?? 'N/A' }}
Basic Information
Vendor Name {{ $vendor->name ?? 'N/A' }} Company {{ $vendor->company_name ?? 'N/A' }}
Father's Name {{ $vendor->father_name ?? 'N/A' }} Mother's Name {{ $vendor->mother_name ?? 'N/A' }}
National ID Number {{ $vendor->nid ?? 'N/A' }} Status {{ $vendor->is_active ? 'Active' : 'Inactive' }}
Email Address {{ $vendor->email ?? 'N/A' }} Mobile Number {{ $vendor->primary_phone ?? 'N/A' }}
Contact Phone {{ $vendor->secondary_phone ?? 'N/A' }} Date Added {{ $vendor->created_at ? $vendor->created_at->format('d M, Y') : 'N/A' }}
Short Description {{ $vendor->short_description ?? 'N/A' }}
All Bills
@forelse($allBills as $bill) @empty @endforelse
Bill No Date Category Total Paid Due Status Document
{{ $bill->bill_no }} {{ optional($bill->bill_date)->format('d - m - Y') }} {{ $bill->category->name ?? 'N/A' }} {{ number_format((float) $bill->total_amount, 2) }} {{ number_format((float) $bill->paid_amount, 2) }} {{ number_format((float) $bill->remaining_amount, 2) }} {{ strtoupper($bill->status) }}
@if($bill->documents->count() > 0) @foreach($bill->documents as $doc) @php $ext = strtolower(pathinfo($doc->file_path, PATHINFO_EXTENSION)); $iconClass = match($ext) { 'pdf' => 'fa-file-pdf text-danger', 'jpg', 'jpeg', 'png', 'webp' => 'fa-file-image text-primary', 'doc', 'docx' => 'fa-file-word text-info', default => 'fa-file text-secondary' }; $filename = basename($doc->file_path); @endphp @endforeach @else - @endif @if($bill->status !== 'void') @endif
No bills found.
All Due Bills
@forelse($dueBills as $bill) @empty @endforelse
Bill No Date Category Total Paid Due Status Document
{{ $bill->bill_no }} {{ optional($bill->bill_date)->format('d - m - Y') }} {{ $bill->category->name ?? 'N/A' }} {{ number_format((float) $bill->total_amount, 2) }} {{ number_format((float) $bill->paid_amount, 2) }} {{ number_format((float) $bill->remaining_amount, 2) }} {{ strtoupper($bill->status) }}
@if($bill->documents->count() > 0) @foreach($bill->documents as $doc) @php $ext = strtolower(pathinfo($doc->file_path, PATHINFO_EXTENSION)); $iconClass = match($ext) { 'pdf' => 'fa-file-pdf text-danger', 'jpg', 'jpeg', 'png', 'webp' => 'fa-file-image text-primary', 'doc', 'docx' => 'fa-file-word text-info', default => 'fa-file text-secondary' }; $filename = basename($doc->file_path); @endphp @endforeach @else - @endif @if($bill->status !== 'void') @endif
No due bills found.
All Payment History
@forelse($paymentHistory as $payment) @empty @endforelse
Payment No Payment Date Bill No Category Method Amount Status
{{ $payment->payment_no }} {{ optional($payment->payment_date)->format('d - m - Y h:i A') }} {{ $payment->bill->bill_no ?? 'N/A' }} {{ $payment->bill->category->name ?? 'N/A' }} {{ strtoupper($payment->paid_from_method_key ?? 'cash') }} {{ number_format((float) $payment->amount, 2) }} {{ ucfirst($payment->status) }}
No payment history found.
@endsection @section('customjs') @endsection