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

@lang("dashboard.Dashboard")


@lang("dashboard.Today's Sales")

{{ $today_sale->count() }}


@lang("dashboard.Today's Sales Return")

{{ $today_sale_return_count }}


@lang("dashboard.Alert")

{{ $alert_count }}


@lang("dashboard.Daily Sales")

৳ {{ round($today_sale->sum('total'), 2) }}


@lang("dashboard.Today's Expense")

৳ {{ round($today_expense_count, 2) }}


@lang("dashboard.Total Sales")

৳ {{ round($totla_sale, 2) }}


@lang("dashboard.Total Purchase")

৳ {{ $totla_purchase }}


@lang("dashboard.Customer Dues")

৳ {{ round($customer_dues, 2) }}


@lang("dashboard.Supplier Dues")

৳ {{ round($supplier_dues, 2) }}


@lang("dashboard.Total Customer")

{{ count($client->where('type', 'customer')) }}


@lang("dashboard.Total Supplier")

{{ count($client->where('type', 'supplier')) }}

@lang("dashboard.My Task")

{{ csrf_field() }}
@foreach ($myTask as $item)
{{$item->note}}
{{ method_field('DELETE') }} {{ csrf_field() }}
@endforeach

@lang("dashboard.Sales & Puechase Summary")

@lang("dashboard.Sales Amount")
@lang("dashboard.Purchased Amount")
@lang("dashboard.Profit Amount")


@lang("dashboard.Customer Dues")
@foreach ($client->where('type', 'customer')->whereNotNull('due')->where('due', '>', '0') as $item) @endforeach
# @lang("dashboard.Date") @lang("dashboard.Name") @lang("dashboard.Amount")
{{ $loop->iteration }} {{ isset($item->date)?$item->date:'' }} {{ isset($item->title)?$item->title:'' }} {{ isset($item->due)?$item->due:'0' }}
@lang("dashboard.Supplier Dues")
@foreach ($client->where('type', 'supplier')->whereNotNull('due')->where('due', '>', '0') as $item) @endforeach
# @lang("dashboard.Date") @lang("dashboard.Name") @lang("dashboard.Amount")
{{ $loop->iteration }} {{ isset($item->date)?$item->date:'' }} {{ isset($item->title)?$item->title:'' }} {{ isset($item->due)?$item->due:'' }}
@lang("dashboard.Today's Stock Out Product")
@foreach ($today_stock_out as $item) @endforeach
# @lang("dashboard.Date") @lang("dashboard.Invoice") # @lang("dashboard.Product") @lang("dashboard.QTY") @lang("dashboard.Amount")
{{ $loop->iteration }} {{ isset($item->date)?$item->date:'' }} INV-000{{ isset($item->sale_invoice_id)?$item->sale_invoice_id:'' }} {{ isset($item->getProduct->title)?$item->getProduct->title:'' }} {{ isset($item->qty)?$item->qty:'' }} ৳ {{ isset($item->total)?$item->total:'' }}
@lang("dashboard.Today's Stock In Product")
@foreach ($today_stock_in as $item) @endforeach
# @lang("dashboard.Date") @lang("dashboard.Invoice") # @lang("dashboard.Product") @lang("dashboard.QTY") @lang("dashboard.Amount")
{{ $loop->iteration }} {{ isset($item->date)?$item->date:'' }} INV-000{{ isset($item->purchase_invoice_id)?$item->purchase_invoice_id:'' }} {{ isset($item->getProduct->title)?$item->getProduct->title:'' }} {{ isset($item->qty)?$item->qty:'' }} ৳ {{ isset($item->total)?$item->total:'' }}
@php $user_landing_page = App\UserLandingPage::where('user_id', Auth::user()->id)->first(); // dd($user_landing_page->landing_page); @endphp @if (isset($user_landing_page->landing_page)) @endif {{-- Line Chart --}} {{-- line chart end --}} @endsection