update marketing
All checks were successful
All checks were successful
This commit is contained in:
30
Modules/Business/resources/views/cashes/excel-csv.blade.php
Normal file
30
Modules/Business/resources/views/cashes/excel-csv.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th>{{ __('Date') }}</th>
|
||||
<th>{{ __('Type') }}</th>
|
||||
<th>{{ __('Payment') }}</th>
|
||||
<th>{{ __('Name') }}</th>
|
||||
<th>{{ __('Amount') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($cashes as $cash)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ formatted_date($cash->date) }}</td>
|
||||
<td>{{ ucwords(str_replace('_', ' ', $cash->platform)) }}</td>
|
||||
<td>{{ ucwords(str_replace('_', ' ', $cash->transaction_type)) }}</td>
|
||||
<td>{{ $cash->user->name ?? '' }}</td>
|
||||
<td>
|
||||
@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
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user