@extends('admin.layouts.master') @section('title', 'Profite & Loss') @section('content')
| Sl.No | Order Id | Price | Customer | Outstanding Amount | Profit | Net Profit | Status | Billed By |
|---|---|---|---|---|---|---|---|---|
| {{$key+1}} | {{ $val->orderId}} @php echo date('h:i A, d M y', strtotime($val->created_at)) @endphp |
Rs {{ $val->totalPrice}} @if($val->commission>0) Paid Amount : {{$val->totalPrice-$val->commission}} @endif |
{{ $val->firstName }}
{{ $val->mobile }} |
{{ $val->real_outstanding }} | Rs {{ number_format($val->profit,2)}} | Rs {{ number_format($val->netprofit,2)}} |
@if($val->is_pos==1)
COUNTER
@endif
@if($val->orderStatus=="Cancel" || $val->orderStatus=="Deleted")
Cancelled
@elseif($val->orderStatus=="Delivered")
{{ $val->orderStatus}}
@if($val->is_pos==1)
@php echo date("h:i A, d M ", strtotime($val->created_at));@endphp @else @php echo date("h:i A, d M ", strtotime($val->delivered_date));@endphp @endif @if(@$logorderIds[$val->id]>0) Partially Returned@endif
@else
{{ $val->orderStatus}}
@endif
|
{{ $telecallerMap[$val->telecaller] ?? 'Point of sale' }} |