@extends('backend.layout.main') @section('content') @if(session()->has('message'))
{!! session()->get('message') !!}
@endif @if(session()->has('not_permitted'))
{{ session()->get('not_permitted') }}
@endif
@foreach($lims_delivery_all as $key=>$delivery) @php // $customer_sale = DB::table('sales') // ->join('customers', 'sales.customer_id', '=', 'customers.id') // ->where('sales.id', $delivery->sale_id) // ->select('sales.reference_no','customers.name', 'customers.phone_number', 'customers.city', 'sales.grand_total') // ->get(); // $product_names = DB::table('sales') // ->join('product_sales', 'sales.id', '=', 'product_sales.sale_id') // ->join('products', 'products.id', '=', 'product_sales.product_id') // ->where('sales.id', $delivery->sale_id) // ->pluck('products.name') // ->toArray(); if($delivery->status == 1) $status = trans('file.Packing'); elseif($delivery->status == 2) $status = trans('file.Delivering'); else $status = trans('file.Delivered'); $barcode = \DNS2D::getBarcodePNG($delivery->reference_no, 'QRCODE'); @endphp @foreach ($saleDetails as $saleItem) @if ($delivery->sale_id === $saleItem->saleId) @php $reference_no = $saleItem->reference_no; $name = $saleItem->name; $phone_number = $saleItem->phone_number; $grand_total = $saleItem->grand_total; $productNames = $saleItem->productNames; @endphp @endif @endforeach {{-- @foreach ($product_names as $productItem) @if ($delivery->sale_id === $productItem->saleId) @php $productNames = $productItem->productNames; @endphp @endif @endforeach --}} @if($delivery->status == 1) @elseif($delivery->status == 2) @else @endif @endforeach
{{trans('file.Delivery Reference')}} {{trans('file.Sale Reference')}} {{trans('file.customer')}} {{trans('file.Address')}} {{trans('file.Products')}} {{trans('file.grand total')}} {{trans('file.Status')}} {{trans('file.action')}}
@endsection @push('scripts')