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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/stock/show_stock_doa.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">Stock(Doa/missing) Details</h6>
                    <div class="btn-group btn-group-sm" role="group" aria-label="Basic example">

                            <a href="{{url('edit_stock_in_doa/'.$stockDoa->stock_doa_id)}}" class="btn btn-primary rounded-0"><i class="fa fa-pencil-alt"></i> Edit </a>

                    </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">Supplier Info</th>
                                    </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>Name</td>
                                    <td>{{$stockDoa->stock->supplier->supplier_name}}</td>
                                </tr>
                                <tr>
                                    <td>Address</td>
                                    <td>{{$stockDoa->stock->supplier->supplier_address}}</td>
                                </tr>
                                <tr>
                                    <td>Phone</td>
                                    <td>{{$stockDoa->stock->supplier->supplier_phone}}</td>
                                </tr>
                                 <tr>
                                    <td>Mobile</td>
                                    <td>{{$stockDoa->stock->supplier->supplier_mobile}}</td>
                                </tr>

                                </tbody>
                            </table>
                        </div>
                        <div class="col-md-4">
                            <table class="table table-bordered table-sm">
                                <thead>
                                <tr class="bg-secondary text-white text-center">
                                    <th colspan="2">C&F Info</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                    <td>Name</td>
                                    <td>{{$stockDoa->stock->cnf->cnf_name}}</td>
                                </tr>
                                <tr>
                                    <td>Address</td>
                                    <td>{{$stockDoa->stock->cnf->cnf_address}}</td>
                                </tr>
                                <tr>
                                    <td>Phone</td>
                                    <td>{{$stockDoa->stock->cnf->cnf_phone}}</td>
                                </tr>
                                 <tr>
                                    <td>Mobile</td>
                                    <td>{{$stockDoa->stock->cnf->cnf_mobile}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                         <div class="col-md-4">
                            <table class="table table-bordered table-sm">
                                <thead>
                                <tr class="bg-secondary text-white text-center">
                                    <th colspan="2">Stock In Summary</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td width="25%">Stock Date</td>
                                        <td>{{$stockDoa->stock->stock_date->format('d-m-Y')}}</td>
                                    </tr>
                                    <tr>
                                        <td width="25%">Entry Date</td>
                                        <td>{{$stockDoa->created_at->format('d-m-Y')}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>



                    <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>Mssing</th>
                                <th>DOA</th>


                            </tr>
                            </thead>
                            <tbody>
                            @foreach($stockDoa->details as $key=>$stock_color)
                                <tr>
                                    <td width="3%">{{$key+1}}</td>
                                    <td>{{$stock_color->product->brand->brand_name}}</td>
                                    <td> {{$stock_color->product->product_name}} </td>
                                    <td> {{$stock_color->product->model->model_name}} </td>
                                    <td> {{$stock_color->color->color_name}} </td>
                                    <td> {{$stock_color->missing-$stock_color->missing_a}} </td>
                                    <td> {{$stock_color->doa-$stock_color->doa_a}} </td>

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

                                <td>
                                    <strong>{{$stockDoa->details->sum('missing')-$stockDoa->details->sum('missing_a')}}</strong>
                                </td>
                                <td>
                                    <strong>{{$stockDoa->details->sum('doa')-$stockDoa->details->sum('doa_a')}}</strong>
                                </td>

                            </tr>
                            </tbody>
                        </table>



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

VaKeR 2022