@extends('layouts.business.pdf.pdf_layout') @section('pdf_title')
{{ __('Duration:') }} @if ($duration === 'today') {{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }} @elseif ($duration === 'yesterday') {{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }} @else {{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }} {{ __('to') }} {{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }} @endif
@endif| {{ __('Date') }} | {{ __('Type') }} | {{ __('Payment') }} | {{ __('Name') }} | {{ __('Amount') }} |
|---|---|---|---|---|
| {{ formatted_date($cash->date) }} | {{ ucwords(str_replace('_', ' ', $cash->platform)) }} | {{ ucwords(str_replace('_', ' ', $cash->transaction_type)) }} | {{ $cash->user->name ?? '' }} | @if ($cash->type == 'credit' || $cash->transaction_type == 'bank_to_cash') {{ currency_format($cash->amount, currency: business_currency()) }} @elseif ($cash->type == 'debit' || $cash->transaction_type == 'cash_to_bank') {{ currency_format(-$cash->amount, currency: business_currency()) }} @endif |