@extends('layouts.master') @section('css') @endsection @section('title') {{ __('report.Delivery_notes') }} @endsection @section('page-header') @endsection @section('content') @if ($errors->any()) @endif @if (session()->has('notfountreturnproduct')) @endif
@csrf
@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 ?? '---' }}
@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 @endforeach
# {{ __('report.date') }} {{ __('home.productNo') }} {{ __('home.product') }} {{ __('home.quantity') }} {{ __('home.saleprice') }}
{{ $i }} {{ $date[0] }} {{ $product->productData->Product_Code ?? '' }} {{ $product->productData->product_name ?? '' }} {{ $product->numberofpice }} {{ $product->productData->purchasingـprice ?? '' }}
@endforeach @endif
@endsection @section('js') @endsection