@extends('layouts.app') @section('content')

PHARMACISTS

@foreach($sales_p as $person) @endforeach
Name Branch Category Action
{{@strtoupper($person->name)}} {{$person->branch}} {{@strtoupper($person->sales_person_category)}} @if(empty(request('date'))) @else
@endif
Customers

{{$all_customers->count()}}

New Customers

Customers

{{empty($app->currency) ? "GHS" : $app->currency}}@convert($with_delivery - $discount_money)

Total Transaction [Sales - (Deliveries+Discounts)]

TRANSACTION FOR {{empty(request()->date) ? "TODAY" : request()->date}}

@foreach($completed_deliveries as $delivery) @endforeach
Order Number Payment Type Amount
{{$delivery->invoice_product_name}} {{empty($app->currency) ? "GHS" : $app->currency}}@convert($delivery->invoice_total_price)

@if(empty(request('date'))) {{empty($app->currency) ? "GHS" : $app->currency}} @convert( \DB::table('invoices') ->where('branch', auth()->user()->branch) ->where('drive_thru_status', 0) ->where('payment_status', 0) ->whereDate('created_at', $getDayClose->day_close) ->sum('invoice_total_price') ) @else {{empty($app->currency) ? "GHS" : $app->currency}} @convert( \DB::table('invoices') ->where('branch', auth()->user()->branch) ->where('drive_thru_status', 0) ->where('payment_status', 0) ->WhereDate('created_at','>=', $from) ->WhereDate('created_at','<=', $to) ->sum('invoice_total_price') ) @endif

Unaccepted Payment[Transactions]

Sales

{{empty($app->currency) ? "GHS" : $app->currency}}@convert($total_no_delivery)

Total Amount Accepted

Commisions

{{empty($app->currency) ? "GHS" : $app->currency}}@convert($discount_money)

Total Discounts

@endsection