@extends('admin.layout.master') @section('title','ORDER SHEET') @section('custom_style') @endsection @section ('content')
| # | Store | Date | Dealer | Group | Limit | Amount | Action | |
|---|---|---|---|---|---|---|---|---|
| {{strtoupper($zone->name)}} | ||||||||
| {{ ($p++) }} | {{ $warehouses->where('id',$item->warehouse_id)->first()->name_eng }} | {{ date('d-M-Y h:i A',strtotime($item->created_at)) }} | {{ $item->showroom?$item->showroom->name_eng:'N\A' }} | {{ $item->showroom?($item->showroom->group_id?$groups->where('id',$item->showroom->group_id)->first()->name_eng:'no Group'):'' }} | {{ $item->showroom?($item->showroom->limit_apply?$item->showroom->credit_limit_amount:'Not Apply'):'' }} | @php $details=$item->details; $netTotal=$details->sum(function($q){ return ($q->order_price*$q->order_qty); }); $wareAmount+=$netTotal // $wareAmount+=$item->net_total; @endphp{{ number_format($netTotal,2) }} | {{--{{ number_format($item->net_total,2) }} | --}}Print @if ($item->delivery_status == 0 && get_guard()=='admin') @if(checkAuthPermission('order.edit')) Edit @endif @endif |
| {{'Total : '}} | {{number_format($wareAmount,2)}} | |||||||
| {{'Grand Total'}} | {{number_format($total,2)}} | |||||||