@extends('layouts.master') @section('css') @endsection @section('title') تقرير مبيعات الموظف - Employee Sales Report @stop @section('page-header') @endsection @section('content')
{{ Nameen ?? '' }}

{{ describtionen ?? '' }}

{{ STen ?? '' }}

{{ Taxen ?? '' }}

@php $logo = camplogo ?? 'default.png'; @endphp logo
{{ Namear ?? '' }}

{{ describtionar ?? '' }}

{{ STar ?? '' }}

{{ Taxar ?? '' }}

تقرير مبيعات الموظف

Employee Sales Report


@if (isset($Invoices)) @php $totaldiscount = 0; $totalpriceall = 0; $totaladdedvalue = 0; $total = 0; $avt = App\Models\Avt::find(1); $saleavt = $avt ? $avt->AVT : 0; @endphp
@foreach ($Invoices as $product) @php $totaldiscount += $product->discount; // المبلغ الإجمالي للفاتورة شامل الضريبة $invoiceTotalWithTax = ($product->cashamount + $product->bankamount + $product->Bank_transfer + $product->creaditamount) - $product->discount; // استخراج المبلغ بدون ضريبة والضريبة من المبلغ الشامل if ($saleavt > 0) { $invoiceTotalWithoutTax = $invoiceTotalWithTax / (1 + $saleavt); $invoiceTax = $invoiceTotalWithTax - $invoiceTotalWithoutTax; } else { $invoiceTotalWithoutTax = $invoiceTotalWithTax; $invoiceTax = 0; } $totalpriceall += $invoiceTotalWithoutTax; $totaladdedvalue += $invoiceTax; $total += $invoiceTotalWithTax; $pays = match($product->Pay) { 'Cash' => __('report.cash'), 'Shabka' => __('report.shabka'), 'Credit' => __('report.credit'), 'Bank_transfer' => __('home.Bank_transfer'), default => __('home.Partition of the amount') }; @endphp @endforeach
{{ __('home.Invoice_no') }} {{ __('home.sallerName') }} {{ __('home.clietName') }} {{ __('home.date') }} {{ __('home.branch') }} {{ __('report.totalpricewithoudtax') }} {{ __('report.totaltax') }} {{ __('home.total') }} {{ __('home.paymentmethod') }}
#{{ $product->id }} {{ optional($product->user)->name }} {{ optional($product->customer)->name }} {{ $product->created_at }} {{ optional($product->branch)->name }} {{ number_format($invoiceTotalWithoutTax, 2) }} {{ number_format($invoiceTax, 2) }} {{ number_format($invoiceTotalWithTax, 2) }} {{ $pays }}
{{ __('home.totaldiscount') }} {{ number_format($totaldiscount, 2) }}
{{ __('report.totalpricewithoudtax') }} {{ number_format($totalpriceall, 2) }}
{{ __('report.totaltax') }} {{ number_format($totaladdedvalue, 2) }}
{{ __('report.totalallprice') }} {{ number_format($total, 2) }}
@endif
@endsection @section('js') @endsection