@extends('admin.layouts.master') @section('title', 'Profite & Loss') @section('content')
Filter
Total Price: Rs {{ number_format($totalPriceAll, 2) }}
Total Profit: Rs {{ number_format($totalProfitAll, 2) }}
Total Net Profit: Rs {{ number_format($totalNetProfitAll, 2) }}
@include('admin.includes.msg')
@if(!empty($order) && $order->count()>0) @foreach($order as $key=>$val) @endforeach @endif
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' }}
Showing {{ $order->firstItem() }} to {{ $order->lastItem() }} of {{ $order->total() }} entries
{{ $order->appends(Request::except('page'))->links('pagination::bootstrap-4') }}
@endsection