@extends('layouts.app') @section('title', __('app.sales')) @section('content')

{{ __('app.sales') }}

{{ __('app.search_by_invoice_customer_imei') }}

{{ __('app.retail_invoice') }} {{ __('app.sale_wizard') }}
@forelse($sales as $s)@empty@endforelse
{{ __('app.invoice') }}{{ __('app.gregorian_date') }}{{ __('app.shamsi_date') }}{{ __('app.customer') }}{{ __('app.currency') }}{{ __('app.total') }}{{ __('app.paid') }}{{ __('app.due') }}{{ __('app.action') }}
{{ $s->invoice_no }}{{ $s->sale_date?->format('Y-m-d') }}{{ $s->sale_date_shamsi ?: '-' }}{{ $s->walk_in_customer_name ?: ($s->customer->name ?? '-') }}{{ $s->currency ?? 'AFN' }}{{ number_format($s->total,2) }}{{ number_format($s->paid,2) }}{{ number_format($s->due,2) }} {{ __('app.invoice') }} {{ __('app.edit') }}
@csrf @method('delete')
{{ __('app.no_records') }}
{{ $sales->links() }} @endsection