@extends('admin.master') @section('title','Sale List') @section('content')
| Date | Invoice Number | {{--Warehouse | --}}Customer | Quantity | Amount | Total Paid | Total Due | Payment Status | Delivery Status | Action | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {!! ++$sl !!} | --}} {{--{!! $value->date !!} | --}} {{--{!! $value->invoice_code !!} | --}} {{--@if(isset($value->warehouse)){!! $value->warehouse->name !!}@endif | --}} {{--@if(isset($value->customer)){!! $value->customer->name !!}@endif | --}} {{--{!! $value->total_quantity !!} | --}} {{--{!! $value->total_amount !!} | --}} {{--{{ $value->payment->sum('payment_amount') }} | --}} {{--{{ $value->total_amount-$value->payment->sum('payment_amount') }} | --}} {{----}} {{-- @if($value->payment_status == \App\Lib\Enumerations\PaymentStatus::$PAID)--}} {{-- {{ "Paid" }}--}} {{-- @elseif($value->payment_status == \App\Lib\Enumerations\PaymentStatus::$DUE)--}} {{-- {{ "Due" }}--}} {{-- @else--}} {{-- {{ "Partial paid" }}--}} {{-- @endif--}} {{-- | --}} {{----}} {{-- @if($value->delivery_status == \App\Lib\Enumerations\DeliveryStatus::$DELIVERED)--}} {{-- {{ "Delivered" }}--}} {{-- @elseif($value->delivery_status == \App\Lib\Enumerations\DeliveryStatus::$PENDING)--}} {{-- {{ "Pending" }}--}} {{-- @elseif($value->delivery_status == \App\Lib\Enumerations\DeliveryStatus::$PROCESSING)--}} {{-- {{ "Processing" }}--}} {{-- @else--}} {{-- Unknown--}} {{-- @endif--}} {{-- | --}} {{----}} {{-- @if($value->payment_status == \App\Lib\Enumerations\PaymentStatus::$DUE)--}} {{-- --}} {{-- --}} {{-- --}} {{-- @endif--}} {{-- --}} {{-- --}} {{-- @if(Auth::user()->user_name == 'admin')--}} {{-- --}} {{-- @endif--}} {{-- | --}} {{--