@extends('layouts.admin.app') @section('title', translate('messages.transaction_report')) @push('css_or_js') @endpush @section('content')
{{ translate('sl') }} | {{ translate('messages.order') }} {{ translate('messages.id') }} | {{ translate('messages.restaurant') }} | {{ translate('messages.customer_name') }} | {{ translate('messages.total_item_amount') }} | {{ translate('messages.item_discount') }} | {{ translate('messages.coupon_discount') }} | {{ translate('messages.discounted_amount') }} | {{ translate('messages.vat/tax') }} | {{ translate('messages.delivery') }} {{ translate('messages.charge') }} | {{ translate('messages.order_amount') }} | {{ translate('messages.admin_discount') }} | {{ translate('messages.restaurant_discount') }} | {{ translate('messages.admin_commission') }} | {{ translate('commision_on_delivery_charge') }} | {{ translate('admin_net_income') }} | {{ translate('restaurant_net_income') }} | {{ translate('messages.amount') }} {{ translate('messages.received_by') }} | {{ translate('messages.payment_method') }} | {{ translate('messages.payment_status') }} | {{ translate('messages.action') }} | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $k + $order_transactions->firstItem() }} | {{ $ot->order_id }} | @if($ot->order->restaurant) {{Str::limit($ot->order->restaurant->name,25,'...')}} @endif | @if ($ot->order->customer) {{ $ot->order->customer['f_name'] . ' ' . $ot->order->customer['l_name'] }} @else @endif | @php $discount_by_admin = 0; if($ot->order->discount_on_product_by == 'admin'){ $discount_by_admin = $ot->order['restaurant_discount_amount']; }; // $discount_by_admin = 0; // if($ot->order->discount_on_product_by == 'admin'){ // $discount_by_admin = $ot->order['restaurant_discount_amount']; // }; @endphp{{ \App\CentralLogics\Helpers::format_currency($ot->order['order_amount'] - $ot->order['dm_tips']-$ot->order['delivery_charge'] - $ot['tax'] + $ot->order['coupon_discount_amount'] + $ot->order['restaurant_discount_amount']) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->order->details->sum('discount_on_food')) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->order['coupon_discount_amount']) }} | {{ \App\CentralLogics\Helpers::number_format_short($ot->order['coupon_discount_amount'] + $ot->order['restaurant_discount_amount']) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->tax) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->delivery_charge + $ot->delivery_fee_comission) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->order_amount) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->admin_expense) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->discount_amount_by_restaurant) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->admin_commission + $ot->admin_expense ) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->delivery_fee_comission) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->admin_commission + $ot->delivery_fee_comission ) }} | {{ \App\CentralLogics\Helpers::format_currency($ot->restaurant_amount - $ot->tax) }} | @if ($ot->received_by == 'admin'){{ translate('messages.admin') }} | @elseif ($ot->received_by == 'deliveryman')
{{ translate('messages.delivery_man') }}
@if (isset($ot->order->delivery_man) && $ot->order->delivery_man->earning == 1)
{{translate('messages.freelance')}}
@elseif (isset($ot->order->delivery_man) && $ot->order->delivery_man->earning == 0 && $ot->order->delivery_man->type == 'restaurant_wise')
{{translate('messages.restaurant')}}
@elseif (isset($ot->order->delivery_man) && $ot->order->delivery_man->earning == 0 && $ot->order->delivery_man->type == 'zone_wise')
{{translate('messages.admin')}}
@endif
|
@elseif ($ot->received_by == 'restaurant')
{{ translate('messages.restaurant') }} | @endif{{ translate(str_replace('_', ' ', $ot->order['payment_method'])) }} | @if ($ot->status) {{translate('messages.refunded')}} @else {{translate('messages.completed')}} @endif |