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 : |
@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 In Details</h6> <div class="btn-group btn-group-sm" role="group" aria-label="Basic example"> <a href="{{url('admin/edit_stock_in/'.$stock->stock_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-6"> <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>{{$stock->supplier->supplier_name}}</td> </tr> <tr> <td>Address</td> <td>{{$stock->supplier->supplier_address}}</td> </tr> <tr> <td>Phone</td> <td>{{$stock->supplier->supplier_phone}}</td> </tr> <tr> <td>Mobile</td> <td>{{$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>{{$stock->cnf->cnf_name}}</td> </tr> <tr> <td>Address</td> <td>{{$stock->cnf->cnf_address}}</td> </tr> <tr> <td>Phone</td> <td>{{$stock->cnf->cnf_phone}}</td> </tr> <tr> <td>Mobile</td> <td>{{$stock->cnf->cnf_mobile}}</td> </tr> </tbody> </table> </div> --}} <div class="col-md-6"> <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>{{$stock->stock_date->format('d-m-Y')}}</td> </tr> <tr> <td width="25%">Remarks</td> <td>{{$stock->remarks}}</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>Category</th> <th>Product</th> {{-- <th>Model</th> --}} {{-- <th>Color</th> --}} <th>Quantity</th> {{-- <th>Mssing</th> --}} {{-- <th>DOA</th> --}} <th>Total</th> {{-- @if($stock->is_iemi == 1) <th>Action</th> @endif --}} </tr> </thead> <tbody> @php $totalm=0;$totald=0; @endphp @foreach($stock->details as $key=>$stock_color) <tr> <td width="3%">{{$key+1}}</td> <td>{{$stock_color->product->category->category_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->product_quantity}} </td> @php // if($stock->doa){ // $doa1=$stock->doa->details->where('product_id',$stock_color->product_id)->where('color_id',$stock_color->color_id)->first(); // $totalm += $doa1 ? $doa1->missing : 0; // $totald += $doa1 ? $doa1->doa : 0; // }else{ // $doa1=$stock->doa; // } @endphp {{-- <td> {{$doa1 ? $doa1->missing : 0}} </td> <td> {{$doa1 ? $doa1->doa : 0}} </td> <td> {{$stock_color->product_quantity-($doa1 ? $doa1->missing : 0)}} </td> --}} @if($stock->is_iemi == 1) <td> @if($stock_color->is_iemi == 1) <div role="group" aria-label="Basic example" class="btn-group btn-group-sm"><a href="{{url('show_iemi_stock_in_list/'.$stock_color->stock_color_id)}}" class="mr-2"> IMEI List </a> </div> @endif </td> @endif <td> {{$stock_color->product->purchase_price*$stock_color->product_quantity}} </td> </tr> @endforeach <tr> <td colspan="5" class="text-right pr-5"> <strong>Total Quantity:</strong> </td> <td> <strong>{{$stock->details->sum('product_quantity')}}</strong> </td> <td> <strong>{{$totalm}}</strong> </td> <td> <strong>{{$totald}}</strong> </td> <td> <strong>{{$stock->details->sum('product_quantity') - $totalm}}</strong> </td> @if($stock->is_iemi == 1) <td> <strong></strong> </td> @endif </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> @endsection