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 :  /home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/damage stock/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/damage stock/show.blade.php
@extends('backend.layout.app')
@section('content')
<div class="page-wrapper">
<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <div class="card mb-4 rounded-0">
                <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                    <h6 class="m-0 font-weight-bold text-primary">Damage Stock Details</h6>
                    <div class="btn-group btn-group-sm" role="group" aria-label="Basic example">
                        @if(auth()->user()->canEvent('edit_damage_stock'))
                            <a href="{{url('edit_damage_stock/'.$d_stock->damage_stock_id)}}" class="btn btn-primary rounded-0"><i class="fa fa-pencil-alt"></i> Edit </a>
                        @endif
                        @if(auth()->user()->canEvent('print_damage_stock'))
                        <a href="{{url('print_damage_stock/'.$d_stock->damage_stock_id)}}" target="_blank" class="btn btn-warning rounded-0"><i class="fa fa-print"></i> Print </a>
                        @endif
                    </div>
                </div>
                <div class="card-body">
                    <div class="row mb-4">
                        <div class="col-md-4">
                            <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>{{$d_stock->customer->customer_name}}</td>
                                </tr>
                                <tr>
                                    <td>Address</td>
                                    <td>{{$d_stock->customer->customer_address}}</td>
                                </tr>
                                <tr>
                                    <td>Phone</td>
                                    <td>{{$d_stock->customer->customer_phone}}</td>
                                </tr>
                                 <tr>
                                    <td>Mobile</td>
                                    <td>{{$d_stock->customer->customer_mobile}}</td>
                                </tr>

                                </tbody>
                            </table>
                        </div>
                        <div @if($d_stock->delivery_mode ==  1) class="col-md-4" @else class="col-md-8" @endif>
                            <table class="table table-bordered table-sm">
                                <thead>
                                <tr class="bg-secondary text-white text-center">
                                    <th colspan="2">Damage Stock Summary</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td width="25%">Damage Entry Date</td>
                                        <td>{{$d_stock->damage_stock_date->format('d-m-Y')}}</td>
                                    </tr>
                                    <tr>
                                    <td>Deliver Mode</td>
                                    <td>
                                         @if($d_stock->delivery_mode ==  1)
                                        Courier
                                        @else
                                       Others
                                        @endif
                                    </td>
                                </tr>
                                    <tr>
                                        <td width="25%">Remarks</td>
                                        <td>{{$d_stock->remarks}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                        @if($d_stock->delivery_mode == 1 )
                         <div class="col-md-4">
                            <table class="table table-bordered table-sm">
                                <thead>
                                <tr class="bg-secondary text-white text-center">
                                    <th colspan="2">Courier Info</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>Courier Name</td>
                                    <td>{{$d_stock->courier->courier_name}}</td>
                                </tr>

                                @if($d_stock->courier->courier_address)
                                <tr>
                                    <td>Courier Address</td>
                                    <td>{{$d_stock->courier->courier_address}}</td>
                                </tr>
                                @endif
                                @if($d_stock->courier->courier_phone)
                                <tr>
                                    <td>Courier Phone</td>
                                    <td>{{$d_stock->courier->courier_phone}}</td>
                                </tr>
                                @endif

                                @if($d_stock->courier->courier_mobile)
                                <tr>
                                    <td>Courier Mobile</td>
                                    <td>{{$d_stock->courier->courier_mobile}}</td>
                                </tr>
                                @endif


                                </tbody>
                            </table>
                        </div>
                        @endif



                    <div class="table-responsive">
                        <table class="table table-bordered text-center table-sm" 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>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($d_stock->damage_stock_details as $key => $requisition_product)
                                <tr>
                                    <td width="3%">{{$key+1}}</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->quantity}} </td>

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

                                <td>
                                    <strong>{{$d_stock->damage_stock_details->sum('quantity')}}</strong>
                                </td>
                            </tr>
                            </tbody>
                        </table>



                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
@endsection

VaKeR 2022