VaKeR CYBER ARMY
Logo of a company Server : Apache
System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User : vapecompany ( 2719)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /proc/thread-self/root/home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/pdf/reports/purchase/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/root/home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/pdf/reports/purchase/purchases.blade.php
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Purchase Report</title>
    @include('backend.pdf.layouts.css')
</head>
<body >
@include('backend.pdf.layouts.report-header')
<main>
    <div id="details" class="clearfix">
        <div id="client"class="mt-10">
            <h2 class="name">{{__('pages.purchase_report')}}</h2>
            <div class="address">
                {{__('pages.filter_by')}}:- {{__('pages.branch')}}: {{$filter_by['branch_name']}},
                {{__('pages.supplier')}}: {{$filter_by['supplier_name']}},
                {{__('pages.date_range')}}: {{$filter_by['start_date']}} to {{$filter_by['end_date']}},
            </div>
        </div>
    </div>


    <table class="table" width="100%" cellspacing="0">
        <thead>
        <tr class="bg-secondary text-white">
            <th>{{__('pages.sl')}}</th>
            <th>{{__('pages.invoice_id')}}</th>
            @can('access_to_all_branch')
                <th>{{__('pages.branch')}}</th>
            @endcan
            <th>{{__('pages.supplier')}}</th>
            <th>{{__('pages.purchase_date')}}</th>
            <th>{{__('pages.total_amount')}}</th>

            <th>{{__('pages.paid_amount')}}</th>
            <th>{{__('pages.due_amount')}}</th>
        </tr>
        </thead>
        <tbody>
        @php
            $total_grand_total_amount = 0;
            $total_paid_amount = 0;
            $total_due_amount = 0;
        @endphp
        @foreach($purchases as $key => $purchase)
            <tr>
                <td>{{$key + 1}}</td>
                <td>
                    <a href="{{route('purchase.show', [$purchase->id])}}">{{$purchase->invoice_id}}</a>
                </td>
                @can('access_to_all_branch')
                <td>{{$purchase->branch->title}}</td>
                @endcan
                <td>{{$purchase->supplier->company_name}}</td>
                <td>{{$purchase->purchase_date->format(get_option('app_date_format'))}}</td>
                <td> {{get_option('app_currency')}} {{number_format($purchase->total_amount, 2)}} </td>
                <td> {{get_option('app_currency')}} {{number_format($purchase->paid_amount, 2)}} </td>
                <td> {{get_option('app_currency')}} {{number_format($purchase->due_amount, 2)}} </td>
            </tr>

            @php
                $total_grand_total_amount += $purchase->total_amount;
                $total_paid_amount += $purchase->paid_amount;
                $total_due_amount += $purchase->due_amount;
            @endphp
        @endforeach
        <tr>
            @can('access_to_all_branch')
                <td colspan="5" class="text-right pr-3"><strong>{{__('pages.total')}}</strong></td>
            @else
                <td colspan="4" class="text-right pr-3"><strong>{{__('pages.total')}}</strong></td>
            @endcan
            <td><strong>{{get_option('app_currency')}} {{number_format($total_grand_total_amount, 2)}}</strong></td>
            <td><strong>{{get_option('app_currency')}} {{number_format($total_paid_amount, 2)}}</strong></td>
            <td><strong>{{get_option('app_currency')}} {{number_format($total_due_amount, 2)}}</strong></td>
        </tr>
        </tbody>
    </table>


</main>
@include('backend.pdf.layouts.footer')
</body>
</html>

VaKeR 2022