@extends('layouts.basic') @section('styles') @endsection @section('content')

Collection

@csrf

Collection-List
@can('collection-create') @endcan
{{-- --}} @foreach ($collection as $collections) {{-- @dd($collections) --}} @php $formattedDate = \Carbon\Carbon::parse($collections->paid_on)->format('d-m-Y h:i A'); @endphp @endforeach
S.NO Customer Name Invoice Number Total Amount Payable Amount Balance Amount Paid On Payment MethodPayment StatusPayment Note Actions
{{ $loop->iteration }} {{ $collections->customer->customer_name }} {{ $collections->invoice->Voucher_no }} {{ IND_money_format($collections->total_amount) }} {{ IND_money_format($collections->payable_amount) }} {{ IND_money_format($collections->balance_amount) }}{{ $formattedDate }} {{ $collections->payment_mode->name }} {{ $collections->payment_note }}
@can('collection-edit') @endcan @can('collection-delete') @endcan
@endsection @section('script') @endsection