@extends('layouts.main') @section('content') @if(Auth::user()->canDo(['view_sales'])) Work Shifts View Sales Invoice Report Sales report {{-- Stock sales --}} Un Dispatched @endif @if(Auth::user()->canDo(['record_stockloss'])) Stock loss @endif @if(Auth::user()->canDo(['record_bad_debt'])) Bad Debts @endif @if(Auth::user()->canDo(['view_transactions'])) Bank @endif
| Receipt Number | Date | Customer | Type | Cost | Amount Paid | Balance | By | Payments | Action | @foreach($main_sales as $main_sale)
|---|---|---|---|---|---|---|---|---|---|
| {{ $main_sale->id }} | {{ $main_sale->created_at->format('d M Y') }} |
@if($main_sale->customer)
{{ $main_sale->customer->name }} {{ $main_sale->customer->phone_number }} @endif |
{{ $main_sale->customer_type }} | {{ number_format($main_sale->sum_sales) }} | {{ number_format($main_sale->payments_total) }} | {{ number_format($main_sale->balance) }} | {{ $main_sale->user->name }} | {{ $main_sale->payment_source }} | Details |
You need the "View sales" permision to see this dashboard
@endif @endsection @push('scripts') @endpush