@if (isset($Invoices) && count($Invoices) > 0)
@php
$count = 0;
$startat = '';
$endat = '';
@endphp
@foreach ($Invoices as $invoice)
@php
if ($count == 0) {
$startat = $invoice->created_at;
}
$endat = $invoice->created_at;
$count++;
@endphp
| {{ __('report.invoiceNo') }} |
{{ $invoice->orderId }} |
| {{ __('home.suppliername') }} |
{{ $invoice->supllier->name ?? '---' }} |
| {{ __('home.notesClient') }} |
{{ $invoice->notes ?? '---' }} |
| {{ __('users.branch') }} |
{{ $invoice->branch->name ?? '---' }} |
| # |
{{ __('report.date') }} |
{{ __('home.productNo') }} |
{{ __('home.product') }} |
{{ __('home.quantity') }} |
{{ __('home.saleprice') }} |
@php $i = 0; @endphp
@foreach (App\Models\orderDetails::where('order_owner', $invoice->orderId)->where('numberofpice', '!=', 0)->get() as $product)
@php
$i++;
$date = explode(' ', $product->created_at);
@endphp
| {{ $i }} |
{{ $date[0] }} |
{{ $product->productData->Product_Code ?? '' }} |
{{ $product->productData->product_name ?? '' }} |
{{ $product->numberofpice }} |
{{ $product->productData->purchasingـprice ?? '' }} |
@endforeach
@endforeach
@endif