@extends('layouts.app') @section('content')
@if (!$rate)
@endif
@php $warehouseName = userWarehouse(); $words = explode(' ', $warehouseName); $firstWord = $words[0] ?? ''; $remainingWords = implode(' ', array_slice($words, 1)); @endphp @admin
{{ $firstWord }}

{{ $remainingWords }}

@else
{{ $firstWord }}

{{ $remainingWords }}

@endadmin
Welcome back, {{ ucwords(explode('@', auth()->user()->username)[0]) }}!
Dashboard Overview
Total sales (Rp)
@if (!empty($totalSales) && is_numeric($totalSales))
{{ number_format($totalSales, 0, ',', '.') }}
@else 0 @endif

Total income from transactions

ATV (Rp)
@if (!empty($atv) && is_numeric($atv))
{{ number_format($atv, 0, ',', '.') }}
@else 0 @endif

Average value per transaction

UPT
@if (!empty($upt) && is_numeric($upt))
{{ number_format($upt, 2, ',', '.') }}
@else 0 @endif

Average items per transaction

Total Sales Graph
Sales Chart by Shift
Sales and Transfer Item Comparison Chart
Normal Price and Discount Price Comparison Chart
Sales Chart by Category
{{-- @if ($istutorials) @endif --}} @endsection