@extends('backend.layouts.master') @section('content')

{{ $page_title ?? '' }}

@admin
{{ translate('Total Amount') }}

{{ currency_symbol().$data['total_amount']}}

@endadmin @admin
{{ translate('Total Tax Amount') }}

{{ currency_symbol().$data['total_tax']}}

{{ translate('Total Profit') }}

{{ currency_symbol().$data['total_profits'] }}

@endadmin
{{ translate('Total Sale Amount') }}

{{ currency_symbol() . $data['total_sale_amounts'] }}

{{ translate('Total Bidding Amount') }}

{{ currency_symbol(). $data['total_bid_amounts']}}

@merchant
{{ translate('Total Widthdraw') }}

{{ currency_symbol().$data['total_withdraw'] }}

{{ translate('Available Balance') }}

{{ currency_symbol().number_format(Auth::user()->wallet_balance,2) }}

@endmerchant {{--
{{ translate('Total Customers') }}

{{ $customers }}

--}} {{-- @admin
{{ translate('Total Merchants') }}

{{ $merchants }}

@endadmin --}} {{--
{{ translate('Total Bids') }}

{{ $total_bids }}

--}} {{--
{{ translate('Total Bidding Products') }}

{{ $bidding_products }}

--}} {{--
{{ translate('Total Selling Products') }}

{{ $sale_products }}

--}} {{--
{{ translate('Total Sales') }}

{{ $total_sales }}

--}} {{-- @admin
{{ translate('Total Tax Received') }}

{{ currency_symbol() . $total_tax }}

{{ translate('Total Deposit') }}

{{ currency_symbol() . $total_deposit }}

@endadmin --}} {{--
{{ translate('Total Withdraw') }}

{{ currency_symbol() . $total_withdraw }}

--}}
{{ translate('Order Summery of daily') }}
{{ translate('Order summery of auction and direct product') }}
@admin
{{ translate('Daily Deposit and Withdraw Summery') }}
{{ translate('Daily Register Customer and Marchant Report') }}
@endadmin
@php //=========== deposit report daily $depositMonth = []; $depositSum = []; if (isset($data['depositReports']) && count($data['depositReports']) > 0) { foreach ($data['depositReports'] as $key => $value) { $depositSum[] = $value->total_amount; $depositMonth[] = "$value->monthsYears"; } } //============= widthdrawMonth report daily $widthdrawMonth = []; $widthdrawSum = []; if (isset($data['widthdrawReports']) && count($data['widthdrawReports']) > 0) { foreach ($data['widthdrawReports'] as $key => $value) { $widthdrawSum[] = $value->total_amount; $widthdrawMonth[] = "$value->monthsYears"; } } $settingProductDate = []; $daySales = []; if (count($productSettingReport) > 0) { foreach ($productSettingReport as $key => $value) { $daySales[] = $value->total; $settingProductDate[] = "$value->monthsYears"; } } //=============== directly order $purchaseOrderQty = []; $purchaseOrderAmount = []; $purchaseOrderDate = []; if (count($data['purchaseOrderReports']) > 0) { foreach ($data['purchaseOrderReports'] as $key => $value) { $purchaseOrderQty[] = $value->quantity; $purchaseOrderAmount[] = $value->amount; $purchaseOrderDate[] = "$value->monthsYears"; } } //==================== bid order $bidOrderQty = []; $bidOrderAmount = []; $bidOrderDate = []; if (count($data['bidOrderReports']) > 0) { foreach ($data['bidOrderReports'] as $key => $value) { $bidOrderQty[] = $value->quantity; $bidOrderAmount[] = $value->amount; $bidOrderDate[] = "$value->monthsYears"; } } //==================== order Summer daily $orderSummeryQty = []; $orderSummeryDate = []; if (count($data['orderSummeries']) > 0) { foreach ($data['orderSummeries'] as $key => $value) { $orderSummeryQty[] = $value->quantity; $orderSummeryDate[] = "$value->monthsYears"; } } //==================== daily customer register report $customerTotal = []; $customerDate = []; if (isset($data['customers']) && count($data['customers']) > 0) { foreach ($data['customers'] as $key => $value) { $customerTotal[] = $value->total; $customerDate[] = "$value->monthsYears"; } } //==================== daily merchant register report $merchantTotal = []; $merchantDate = []; if (isset($data['merchants']) && count($data['merchants']) > 0) { foreach ($data['merchants'] as $key => $value) { $merchantTotal[] = $value->total; $merchantDate[] = "$value->monthsYears"; } } @endphp @endsection @push('js') @php //=========== deposit report $depositSum = implode(',', $depositSum); $depositMonth = implode('","', $depositMonth); //=========== widthdraw report $widthdrawSum = implode(',', $widthdrawSum); $widthdrawMonth = implode('","', $widthdrawMonth); $daySales = implode(',', $daySales); $settingProductDate = implode('","', $settingProductDate); //=========== direct product order report $purchaseOrderQty = implode('","', $purchaseOrderQty); $purchaseOrderAmount = implode('","', $purchaseOrderAmount); $purchaseOrderDate = implode('","', $purchaseOrderDate); //=========== auction product order report $bidOrderQty = implode('","', $bidOrderQty); $bidOrderAmount = implode('","', $bidOrderAmount); $bidOrderDate = implode('","', $bidOrderDate); //=========== allrder report $orderSummeryQty = implode('","', $orderSummeryQty); $orderSummeryDate = implode('","', $orderSummeryDate); //=========== customer report $customerTotal = implode('","', $customerTotal); $customerDate = implode('","', $customerDate); //=========== merchant report $merchantTotal = implode('","', $merchantTotal); @endphp @include('js.admin.dashboard') @endpush