@extends('layouts.seller') @section('content')

Hallo {{ session('userData')->name }}

{{-- total pesanan hari ini --}}

Total pesanan *hari ini

{{ \App\Models\Transaction::where('seller_id', session('userData')->id)->whereDate('created_at', now())->count() }}

{{-- total pesanan --}}

Total transaksi terselesaikan

{{ \App\Models\Transaction::where('seller_id', session('userData')->id)->where('status', 'success')->count() }}

{{--

Decreased by

--}}

Increased by {{ \App\Models\Transaction::where('seller_id', session('userData')->id)->where('status', 'success')->whereDate('created_at', now())->count() }}

{{-- total pendapatan hari ini --}}

$

Total pendapatan *hari ini

{{ 'Rp ' .number_format(\App\Models\Transaction::where('seller_id', session('userData')->id)->where('status', 'success')->whereDate('created_at', now())->sum('amount'),0,',','.') }}

{{-- total pendapatan --}}

$

Total pendapatan

{{ 'Rp ' .number_format(\App\Models\Transaction::where('seller_id', session('userData')->id)->where('status', 'success')->sum('amount'),0,',','.') }}

Increased by {{ 'Rp ' .number_format(\App\Models\Transaction::where('seller_id', session('userData')->id)->where('status', 'success')->whereDate('created_at', now())->sum('amount'),0,',','.') }}

@endsection @section('script') @endsection