@extends('layouts.master') @section('css') @endsection @section('title') {{ __('home.recentquotation') }} @endsection @section('page-header')
@endsection @section('content') @if (count($errors) > 0)| {{ __('home.Invoice_no') }} | {{ __('home.clietName') }} | {{ __('home.date') }} | {{ __('home.branch') }} | {{ __('home.total') }} | {{ __('home.operations') }} |
|---|---|---|---|---|---|
| {{ $product->id }} | {{ $product->customer->name }} | {{ $product->created_at->format('Y-m-d') }} | {{ $product->branch->name }} | @php // الحساب الموحد (نفس الشاشة والطباعة و PDF) $totalWithTax = \App\Support\QuotationTotals::calculate( $pageItems->get($product->id, collect()), $product->discount ?? 0, $avtSaleRate )['grand_total']; @endphp {{ number_format($totalWithTax, 2) }} |