@extends('layouts.admin.master') @section('title', 'Sale Order Details') @section('content')
Sale Order Details
@csrf
@if (count($saleDetails) != 0) @php $count = 1; $totalAmount = 0; @endphp @foreach ($saleDetails as $saleDetail) @if ($saleDetail['is_foc'] == 0) @elseif ($saleDetail['is_foc'] == 1) @endif @php $count++; if ($saleDetail['is_foc'] == 0) { $totalAmount += $saleDetail['sale_price'] * $saleDetail['quantity']; } @endphp @endforeach @endif
No Item Name Order Date Order Time Unit Unit Price Qty Amount FOC Ordered By
{{ $count }} {{ $saleDetail['item_name'] }} {{ date('d-M-y', strtotime($saleDetail['created_at'])) }} {{ date('h:i A', strtotime($saleDetail['created_at'])) }} {{ $saleDetail['unit_name'] }} {{ number_format($saleDetail['sale_price']) }} MMK {{ $saleDetail['quantity'] }} @if ($saleDetail['is_foc'] == 1) 0 MMK @elseif($saleDetail['is_foc'] == 0) {{ number_format($saleDetail['sale_price'] * $saleDetail['quantity']) }} MMK @endif {{ $saleDetail['name'] }}
{{-- --}}
@csrf
@endsection