@extends('layout.main') @section('content') @if(session()->has('not_permitted'))
{{ session()->get('not_permitted') }}
@endif @if(session()->has('message'))
{{ session()->get('message') }}
@endif

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

{{ trans('file.revenue') }}
{{number_format((float)$revenue, 2, '.', '')}}
{{trans('file.Sale Return')}}
{{number_format((float)$return, 2, '.', '')}}
{{trans('file.Purchase Return')}}
{{number_format((float)$purchase_return, 2, '.', '')}}
{{trans('file.profit')}}
{{number_format((float)$profit, 2, '.', '')}}

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

@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

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

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

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

{{trans('file.latest')}} 5
@foreach($recent_sale as $sale)
Fatal error: Uncaught Error: Class "DB" not found in /var/www/html/repo/invoicing-salepropos/resources/views/index.blade.php:243 Stack trace: #0 {main} thrown in /var/www/html/repo/invoicing-salepropos/resources/views/index.blade.php on line 243
{{trans('file.date')}} {{trans('file.reference')}} {{trans('file.customer')}} {{trans('file.status')}} {{trans('file.grand total')}}