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/requisition/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/root/home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/pdf/requisition/show.blade.php
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Sells Report</title>
        @include('backend.pdf.layouts.css')
        @if($requisition->payment_mode == 2)
        <style type="text/css">
            .col-md-3 {
               /* flex: 0 0 25%;
                max-width: 25%;*/
                float:left;
                width: 25%;

            }
            .row {
   /* display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;*/
}
@page { margin: 4px; }
body { margin: 0px; }
#uptable .table-bordered {
    border: none;
}
#uptable table th, #uptable table td {
    border: none;
}
#uptable table td {
   text-align: left;
}
        </style>
        @else
                <style type="text/css">
            .col-md-3 {
               /* flex: 0 0 25%;
                max-width: 25%;*/
                float:left;
                width: 33.30%;

            }
            .row {
   /* display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;*/
}
@page { margin: 4px; }
body { margin: 0px; }
#uptable .table-bordered {
    border: none;
}
#uptable table th, #uptable table td {
    border: none;
}
 #uptable table td {
   text-align: left;
}
        </style>
        @endif
</head>
<body >
@include('backend.pdf.layouts.report-header')
    <main>
        <div style="text-align: center;">
<h2 style="padding: 0px;margin: 0px;">REQUISITION</h2>
</div>
            <div class="row mb-4 clearfix" id="uptable" style="padding: 5px;">
                        <div class="col-md-3" style="padding-right:2px;">
                            <table class="table table-bordered table-sm">
                                <thead>
                                    <tr class="bg-secondary text-white text-center">
                                        <th colspan="2">Customer Info</th>
                                    </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>Name     :</td>
                                    <td>{{$requisition->customer->customer_name}}</td>
                                </tr>
                                <tr>
                                    <td>Address :</td>
                                    <td>{{$requisition->customer->customer_address}}</td>
                                </tr>
                                 @if($requisition->customer->customer_email)
                                <tr>
                                    <td>Email :</td>
                                    <td>{{$requisition->customer->customer_email}}</td>
                                </tr>
                                @endif
                                 @if($requisition->customer->customer_phone)
                                <tr>
                                    <td>Phone :</td>
                                    <td>{{$requisition->customer->customer_phone}}</td>
                                </tr>
                                @endif
                                 @if($requisition->customer->customer_mobile)
                                <tr>
                                    <td>Mobile :</td>
                                    <td>{{$requisition->customer->customer_mobile}}</td>
                                </tr>
                                @endif


                                </tbody>
                            </table>
                        </div>
                        <div class="col-md-3" style="padding-right:2px;">
                            <table class="table table-bordered table-sm">
                                <thead>
                                    <tr class="bg-secondary text-white text-center">
                                        <th colspan="2">Employee Info</th>
                                    </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>Name :</td>
                                    <td>{{$requisition->employee->employee_name}}</td>
                                </tr>
                                @if($requisition->employee->designation_id)
                                <tr>
                                    <td>Designation :</td>
                                    <td>{{$requisition->employee->designation->designation_name}}</td>
                                </tr>
                                @endif
                                @if($requisition->employee->division_id)
                                <tr>
                                    <td>Division :</td>
                                    <td>{{$requisition->employee->division->division_name}}</td>
                                </tr>
                                @endif
                                @if($requisition->employee->district_id)
                                <tr>
                                    <td>District :</td>
                                    <td>{{$requisition->employee->district->district_name}}</td>
                                </tr>
                                @endif

                                @if($requisition->employee->employee_address)
                                <tr>
                                    <td>Address :</td>
                                    <td>{{$requisition->employee->employee_address}}</td>
                                </tr>
                                @endif
                                @if($requisition->employee->employee_email)
                                <tr>
                                    <td>Email :</td>
                                    <td>{{$requisition->employee->employee_email}}</td>
                                </tr>
                                @endif
                                @if($requisition->employee->employee_phone)
                                <tr>
                                    <td>Phone :</td>
                                    <td>{{$requisition->employee->employee_phone}}</td>
                                </tr>
                                @endif




                                </tbody>
                            </table>
                        </div>

                        <div class="col-md-3">
                            <table class="table table-bordered table-sm">
                                <thead>
                                <tr class="bg-secondary text-white text-center">
                                    <th colspan="2">Requisition Summary</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>Requisition Code :</td>
                                    <td>{{$requisition->Requsition_code}}</td>
                                </tr>

                                @if($requisition->requistion_status == 0 || $requisition->requistion_status == 1)
                                    <tr>
                                        <td>Created Date :</td>
                                        <td>{{$requisition->created_at->format('Y-m-d')}}</td>
                                    </tr>
                                @elseif($requisition->requistion_status == 2)
                                    <tr>
                                        <td>Requisition Aprroved Date :</td>
                                        <td>{{$requisition->approve_date->format('Y-m-d')}}</td>
                                    </tr>
                                @elseif($requisition->requistion_status ==3)
                                    <tr>
                                        <td>Account Verified Date :</td>
                                        <td>{{$requisition->verify_date->format('Y-m-d')}}</td>
                                    </tr>
                                 @elseif($requisition->requistion_status == 4)
                                    <tr>
                                        <td>Completed Date :</td>
                                        <td>{{$requisition->delivered_date->format('Y-m-d')}}</td>
                                    </tr>
                                @elseif($requisition->requistion_status ==5)
                                    <tr>
                                        <td>Cancel Date :</td>
                                        <td>{{$requisition->cancel_date->format('Y-m-d')}}</td>
                                    </tr>

                                @else
                                    <tr>
                                        <td>Rejected Date :</td>
                                        <td>{{$requisition->reject_date->format('Y-m-d')}}</td>
                                    </tr>
                                @endif
                                 <tr>
                                    <td>Payment Mode :</td>
                                    <td>
                                         @if($requisition->payment_mode == 2 )
                                        Bank
                                        @else
                                        Cash IN HAND
                                        @endif
                                    </td>
                                </tr>
                                <tr>
                                    <td>Payment Amount :</td>
                                    <td>
                                         {{$requisition->paid_amount}} Tk
                                    </td>
                                </tr>
                                <tr>
                                    <td>Status :</td>
                                    <td class="p-0">
                                        @if($requisition->requistion_status == 0)
                                            <label class="btn btn-warning btn-sm btn-block m-0"><b>Draft</b></label>
                                        @elseif($requisition->requistion_status == 1)
                                            <label class="btn btn-info btn-sm btn-block m-0"><b>Pending</b></label>
                                        @elseif($requisition->requistion_status == 2)
                                            <label class="btnbtn-info btn-sm btn-block m-0"><b>Requisition Approved</b></label>
                                        @elseif($requisition->requistion_status == 3)
                                            <label class="btn btn-info btn-sm btn-block m-0"><b>Accounts Approved</b></label>
                                        @elseif($requisition->requistion_status == 4)
                                            <label class="btn btn-success btn-sm btn-block m-0"><b>Delivered</b></label>
                                        @elseif($requisition->requistion_status == 5)
                                            <label class="btn btn-danger btn-sm btn-block m-0"><b>Requisition Cancel</b></label>
                                        @else
                                            <label class="btn btn-danger btn-sm btn-block m-0"><b>Accounts Reject</b></label>
                                        @endif
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                         @if($requisition->payment_mode == 2 )
                         <div class="col-md-3" style="padding-left:2px;">
                            <table class="table table-bordered table-sm">
                                <thead>
                                <tr class="bg-secondary text-white text-center">
                                    <th colspan="2">Bank Info</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>Bank Name :</td>
                                    <td>{{$requisition->bank->bank_name}}</td>
                                </tr>
                                @if($requisition->branch->bank_branch_name)
                                <tr>
                                    <td>Branch Name</td>
                                    <td>{{$requisition->branch->bank_branch_name}}</td>
                                </tr>
                                @endif
                                @if($requisition->branch->bank_branch_address)
                                <tr>
                                    <td>Address</td>
                                    <td>{{$requisition->branch->bank_branch_address}}</td>
                                </tr>
                                @endif

                                @if($requisition->branch->bank_branch_phone)
                                <tr>
                                    <td>Phone</td>
                                    <td>{{$requisition->branch->bank_branch_phone}}</td>
                                </tr>
                                @endif
                                @if($requisition->branch->bank_branch_mobile)
                                <tr>
                                    <td>Mobile</td>
                                    <td>{{$requisition->branch->bank_branch_mobile}}</td>
                                </tr>
                                @endif




                                 <tr>
                                    <td>Bank Deposite Slip :</td>
                                    <td><a target="_blank" href="{{url('document/show').'/1/'.$requisition->bank_deposit_image}}"> <img height="50px" width="50px" src="{{url('public/images/bank_slip').'/'.$requisition->bank_deposit_image}}" /></a></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        @endif
                    </div>
        <div>
            <table class="table" width="100%" cellspacing="0">
                <thead>

                <tr class="bg-secondary text-white">
                   <th>SL</th>
                                <th>Brand</th>
                                <th>Product</th>
                                <th>Model</th>
                                <th>Color</th>
                                <th>Quantity</th>
                                <th>Amount</th>
                </tr>
                </thead>
                <tbody>
                 @php $total=0; $i=1;@endphp
       @foreach($requisition->details->sortBy(function ($product, $key) {

                        return $product['product_id'].$product['color_id'];

                    }) as $key => $requisition_product)
                    <tr>
                                    <td width="3%">{{$i}}</td>
                                    <td>{{$requisition_product->product->brand->brand_name}}</td>
                                    <td> {{$requisition_product->product->product_name}} </td>
                                    <td> {{$requisition_product->product->model->model_name}} </td>
                                    <td> {{$requisition_product->color->color_name}} </td>
                                    <td> {{$requisition_product->product_quantity}} </td>
                                    <td>
                                    @php
                                    $i++;
                                    $am=$requisition_product->product_unit_price*$requisition_product->product_quantity;
                                    $total = $total+$am; @endphp
                                    {{number_format($am,2)}} Tk</td>

                                </tr>



        @endforeach
            <tr>
                                <td colspan="5" class="text-right pr-5">
                                    <strong>Total Quantity:</strong>
                                </td>

                                <td>
                                    <strong>{{$requisition->details->sum('product_quantity')}}</strong>
                                </td>
                                <td>
                                    <strong>{{number_format($total,2)}} Tk</strong>
                                </td>
                            </tr>



                </tbody>
            </table>

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

VaKeR 2022