@extends('layouts.admin') @section('page-title') {{ __('Proposal Detail') }} @endsection @php $settings = App\Models\Utility::settings(); @endphp @push('script-page') @endpush @section('breadcrumb') @if (\Auth::guard('customer')->check())
{{ __('Created on ') }}{{ \Auth::user()->dateFormat($proposal->issue_date) }}
@can('edit proposal') {{ __('Edit') }} @endcan@if ($proposal->status != 0) {{ __('Sent on') }} {{ \Auth::user()->dateFormat($proposal->send_date) }} @else @can('send proposal') {{ __('Status') }} : {{ __('Not Sent') }} @endcan @endif
@if ($proposal->status == 0) @can('send proposal') {{ __('Send') }} @endcan @endif| # | {{ __('Product') }} | {{ __('Quantity') }} | {{ __('Rate') }} | {{ __('Discount') }} | {{ __('Tax') }} | {{ __('Description') }} | {{ __('Price') }} {{ __('before tax & discount') }} |
||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ !empty($iteam->product) ? $iteam->product->name : '' }} | {{ $iteam->quantity }} ({{ $iteam->product->unit->name }}) | {{ \Auth::user()->priceFormat($iteam->price) }} | {{ \Auth::user()->priceFormat($iteam->discount) }} |
@if (!empty($iteam->tax))
|
{{ !empty($iteam->description) ? $iteam->description : '-' }} | {{ \Auth::user()->priceFormat($iteam->price * $iteam->quantity) }} | ||||||
| {{ __('Total') }} | {{ $totalQuantity }} | {{ \Auth::user()->priceFormat($totalRate) }} | {{ \Auth::user()->priceFormat($totalDiscount) }} | {{ \Auth::user()->priceFormat($totalTaxPrice) }} | {{--{{__('Total')}} | {{$totalQuantity}} | {{\Auth::user()->priceFormat($totalRate)}} | {{\Auth::user()->priceFormat($totalTaxPrice)}} | --}} {{--{{\Auth::user()->priceFormat($totalDiscount)}} | --}}||||
| {{ __('Sub Total') }} | {{ \Auth::user()->priceFormat($proposal->getSubTotal()) }} | ||||||||||||
| {{ __('Discount') }} | {{ \Auth::user()->priceFormat($proposal->getTotalDiscount()) }} | ||||||||||||
| {{$taxName}} | {{ \Auth::user()->priceFormat($taxPrice) }} | ||||||||||||
| {{ __('Total') }} | {{ \Auth::user()->priceFormat($proposal->getTotal()) }} | ||||||||||||