@extends('layout.app') @section('content')

Dashboard

Customers

{{ $saleCount }}

Venders

{{ $vendorCount }}

Purchases

{{ $purchaseCount }}

Sales

{{ $saleCount }}

@foreach($sales->sortByDesc('id')->take(2) as $sa) @endforeach
Customer No Serial Number Customer Name Amount Date & Time Status
{{ $sa->Customer_No }} {{ $sa->stock->product_code }} {{ $sa->Customer_name }} ${{ number_format($sa->sub_total, 2) }} {{ \Carbon\Carbon::parse($sa->created_at)->format('d M Y') }} @if ($sa->payment_status === 'paid') {{ ucfirst($sa->payment_status) }} @elseif ($sa->payment_status === 'pending') {{ ucfirst($sa->payment_status) }} @elseif ($sa->payment_status === 'unpaid') {{ ucfirst($sa->payment_status) }} @else {{ ucfirst($sa->payment_status) }} @endif
Monthly Purchase And Sales
@endsection