migrate to gtea from bistbucket
This commit is contained in:
81
Modules/Business/resources/views/transactions/pdf.blade.php
Normal file
81
Modules/Business/resources/views/transactions/pdf.blade.php
Normal file
@@ -0,0 +1,81 @@
|
||||
@extends('layouts.business.pdf.pdf_layout')
|
||||
|
||||
@section('pdf_title')
|
||||
<div class="table-header justify-content-center border-0 d-none d-block d-print-block text-center">
|
||||
@include('business::print.header')
|
||||
<h4 style="text-align: center; margin: 0; padding: 0; font-size: 16px;" class="">{{ __('Transaction Report List') }}</h4>
|
||||
{{-- <p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration: 14-12-2025 to 24-12-2025') }}</p> --}}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('pdf_content')
|
||||
<table width="100%" cellpadding="6" cellspacing="0" style="border-collapse: collapse; border: 1px solid gainsboro; font-size:12px;">
|
||||
<thead>
|
||||
<tr style="background-color: #C52127; color: white;">
|
||||
<th style="border:1px solid gainsboro; color:white;" class="text-start">{{ __('Date') }}</th>
|
||||
<th style="border:1px solid gainsboro; color:white;" class="text-start">{{ __('Party Name') }}</th>
|
||||
<th style="border:1px solid gainsboro; color:white;" class="text-start">{{ __('Reference') }}</th>
|
||||
<th style="border:1px solid gainsboro; color:white;" class="text-start">{{ __('Type') }}</th>
|
||||
<th style="border:1px solid gainsboro; color:white;" class="text-start">{{ __('Amount') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tbody>
|
||||
@foreach ($transactions as $transaction)
|
||||
<tr style="background-color: {{ $loop->even ? '#F5F5F5' : '#FFFFFF' }};">
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ formatted_date($transaction->date) }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
@switch($transaction->platform)
|
||||
@case('sale')
|
||||
{{ $transaction->sale?->party?->name ?? 'Guest' }}
|
||||
@break
|
||||
@case('sale_return')
|
||||
{{ $transaction->saleReturn?->sale?->party?->name ?? 'Guest' }}
|
||||
@break
|
||||
@case('purchase')
|
||||
{{ $transaction->purchase?->party?->name ?? 'Guest' }}
|
||||
@break
|
||||
@case('purchase_return')
|
||||
{{ $transaction->purchaseReturn?->purchase?->party?->name ?? 'Guest' }}
|
||||
@break
|
||||
@case('due_collect')
|
||||
@case('due_pay')
|
||||
{{ $transaction->dueCollect?->party?->name ?? 'Guest' }}
|
||||
@break
|
||||
@default
|
||||
{{__('N/A')}}
|
||||
@endswitch
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $transaction->invoice_no }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ ucwords(str_replace('_', ' ', $transaction->platform)) }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center; {{ $transaction->type == 'credit' ? 'text-success' : 'text-danger' }}">
|
||||
{{ currency_format($transaction->amount, currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@if ($transactions->count() > 0)
|
||||
<tfoot>
|
||||
<tr style="background-color:#C52127; color:#FFFFFF; font-weight:bold;">
|
||||
<td style="border:1px solid gainsboro; text-align:center; color: white">
|
||||
{{ __('Total') }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">
|
||||
{{ currency_format($transactions->sum('amount'), currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@endif
|
||||
</table>
|
||||
@endsection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user