@extends('backend.layout.main') @section('content') @if(session()->has('not_permitted'))
{{ session()->get('not_permitted') }}
@endif @if(session()->has('message'))
{{ session()->get('message') }}
@endif @php if($general_setting->theme == 'default.css'){ $color = '#733686'; $color_rgba = 'rgba(115, 54, 134, 0.8)'; } elseif($general_setting->theme == 'green.css'){ $color = '#2ecc71'; $color_rgba = 'rgba(46, 204, 113, 0.8)'; } elseif($general_setting->theme == 'blue.css'){ $color = '#3498db'; $color_rgba = 'rgba(52, 152, 219, 0.8)'; } elseif($general_setting->theme == 'dark.css'){ $color = '#34495e'; $color_rgba = 'rgba(52, 73, 94, 0.8)'; } @endphp

{{trans('file.welcome')}} {{Auth::user()->name}}

@if(in_array("revenue_profit_summary", $all_permission))
@endif
@if(in_array("revenue_profit_summary", $all_permission))
{{number_format((float)$revenue, 2, '.', '')}}
{{ trans('file.revenue') }}
{{number_format((float)$return, 2, '.', '')}}
{{trans('file.Sale Return')}}
{{number_format((float)$purchase_return, 2, '.', '')}}
{{trans('file.Purchase Return')}}
{{number_format((float)$profit, 2, '.', '')}}
{{trans('file.profit')}}
@endif @if(in_array("cash_flow", $all_permission))

{{trans('file.Cash Flow')}}

@endif @if(in_array("monthly_summary", $all_permission))

{{date('F')}} {{date('Y')}}

@endif
@if(in_array("yearly_report", $all_permission))

{{trans('file.yearly report')}}

@endif

{{trans('file.Recent Transaction')}}

{{trans('file.latest')}} 5
@foreach($recent_sale as $sale) @if($sale->sale_status == 1) @elseif($sale->sale_status == 2) @else @endif @endforeach
{{trans('file.date')}} {{trans('file.reference')}} {{trans('file.customer')}} {{trans('file.status')}} {{trans('file.grand total')}}
{{ date($general_setting->date_format, strtotime($sale->created_at->toDateString())) }} {{$sale->reference_no}} {{$sale->customer->name}}
{{trans('file.Completed')}}
{{trans('file.Pending')}}
{{trans('file.Draft')}}
{{$sale->grand_total}}
@foreach($recent_purchase as $purchase) @if($purchase->supplier) @else @endif @if($purchase->status == 1) @elseif($purchase->status == 2) @elseif($purchase->status == 3) @else @endif @endforeach
{{trans('file.date')}} {{trans('file.reference')}} {{trans('file.Supplier')}} {{trans('file.status')}} {{trans('file.grand total')}}
{{date($general_setting->date_format, strtotime($purchase->created_at->toDateString())) }} {{$purchase->reference_no}}{{$purchase->supplier->name}}N/A
Recieved
Partial
Pending
Ordered
{{$purchase->grand_total}}
@foreach($recent_quotation as $quotation) @if($quotation->quotation_status == 1) @else @endif @endforeach
{{trans('file.date')}} {{trans('file.reference')}} {{trans('file.customer')}} {{trans('file.status')}} {{trans('file.grand total')}}
{{date($general_setting->date_format, strtotime($quotation->created_at->toDateString())) }} {{$quotation->reference_no}} {{$quotation->customer->name}}
Pending
Sent
{{$quotation->grand_total}}
@foreach($recent_payment as $payment) @endforeach
{{trans('file.date')}} {{trans('file.reference')}} {{trans('file.Amount')}} {{trans('file.Paid By')}}
{{date($general_setting->date_format, strtotime($payment->created_at->toDateString())) }} {{$payment->payment_reference}} {{$payment->amount}} {{$payment->paying_method}}

{{trans('file.Best Seller').' '.date('F')}}

{{trans('file.top')}} 5
@foreach($best_selling_qty as $key=>$sale) @endforeach
{{trans('file.Product Details')}} {{trans('file.qty')}}
{{$sale->product_name}} [{{$sale->product_code}}] {{$sale->sold_qty}}

{{trans('file.Best Seller').' '.date('Y'). '('.trans('file.qty').')'}}

{{trans('file.top')}} 5
@foreach($yearly_best_selling_qty as $key => $sale) @endforeach
{{trans('file.Product Details')}} {{trans('file.qty')}}
{{$sale->product_name}} [{{$sale->product_code}}] {{$sale->sold_qty}}

{{trans('file.Best Seller').' '.date('Y') . '('.trans('file.price').')'}}

{{trans('file.top')}} 5
@foreach($yearly_best_selling_price as $key => $sale) @endforeach
{{trans('file.Product Details')}} {{trans('file.grand total')}}
{{$sale->product_name}} [{{$sale->product_code}}] {{number_format((float)$sale->total_price, 2, '.', '')}}
@endsection @push('scripts') @endpush