{{--

{{ $records['company']['company_name'] }}

--}}

{{ $companyName }}

{{ $cityName }}, {{ $stateName }}

{{--

Phone: {{ $records['sellerMobileNo'] ?? 'N/A' }}

--}}

Phone: {{ $user->mobile_number }}

{{ ucfirst($type) }} Report

{{-- @dd($records['dateRange']) --}}

Date: {{ $dateRange }}

@if ($type === 'purchase') @else @endif {{-- --}} @if ($type === 'sell') @endif @if ($type === 'purchase') @endif @if (empty($records)) @else @foreach ($records as $record) {{-- @dd($record) --}} @if ($type === 'purchase') @else @endif {{-- --}} @if ($type === 'sell') @endif @if ($type === 'purchase') @endif @endforeach @endif
Invoice No. DateFarmer NameCustomerMobileProduct CountTotal Sales Commission Credit Paid OutstandingAmount Credit Received Outstanding
No records found
#{{ $record['id'] ?? '-' }} {{ \Carbon\Carbon::parse($record['generated_at'])->format('d-m-Y') ?? '-' }} @if ($type === 'purchase') {{ $record['farmer']['name'] ?? '-' }} @else {{ $record['buyer']['buyer_name'] ?? '-' }} @endif {{ $record['farmer']['mobile_no'] ?? '-' }}{{ $record['buyer']['mobile_no'] ?? '-' }}{{ $record['items_count'] ?? '-' }}{{ $record['grand_total'] ?? '-' }} {{ $record['commission'] ?? '-' }} {{ $record['credit'] ?? '-' }} {{ $record['paid'] ?? '-' }} {{ $record['outstanding'] ?? '-' }}{{ $record['total'] ?? '-' }} {{ $record['credit'] ?? '-' }} {{ $record['paid'] ?? '-' }} {{ $record['outstanding'] ?? '-' }}