@extends('layouts.master') @section('title', 'Quotation | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.quotation')) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.quotations') }} | {{ __('basic.quotation') }}
@if ($quotation->status == 1) {{ __('basic.transfer to an invoice to edit') }} {{ __('basic.accept without editing') }} @endif @role('Super-admin|Operation-manager|') {{ __('basic.delete') }} @endrole @if ($quotation->status !== 0) {{ __('basic.print') }} @endif
{{ __('basic.quotation') }}
@if ($quotation->receivable)
@if ($quotation->receivable_type === 'App\Models\Invoice\Debtor') @php $receivable_type_name = $quotation->receivable->company_name; $receivable_type_title = __('basic.supplier'); $receivable_type_avatar = "img/debtor/"; @endphp @else @php $receivable_type_name = $quotation->receivable->full_name; $receivable_type_title = __('basic.traveler'); $receivable_type_avatar = "img/useravatar/"; @endphp @endif
@else

{{ __('patientappo.invoice no receiver') }}

@endif
{!! QrCode::color(68, 95, 129)->size(75)->style('round')->eye('circle')->generate($quotation->code) !!}

{{ $quotation->code }}


{{ __('basic.serial') }}

{{ $quotation->new_id }}

{{ __('basic.branch') }}

{{ $quotation->branch->name }} @if ($quotation->worker) | {{ $quotation->worker->name }} @endif

{{ __('basic.created') }}

{{ date('d M Y', strtotime($quotation->created_at)) }}

{{ __('basic.ended date') }}

@if($quotation->due_date) {{ date('d M Y', strtotime($quotation->due_date)) }}

@else {{ __('basic.no due date') }} @endif
{{ __('basic.status') }}
@if ($quotation->status == 1) {{ __('basic.in progress') }} @elseif ($quotation->status == 2) {{ __('basic.send') }} @elseif ($quotation->status == 3) {{ __('basic.accepted') }} @elseif ($quotation->status == 4) {{ __('basic.rejected') }} @endif
@if($quotation->accepted_invoice_id)
{{ __('basic.invoice') }}
@endif
{{ __('basic.worker') }}

{{ $quotation->creator->full_name }}


@foreach ($quotation->items as $item) @endforeach
{{ __('basic.item') }} {{ __('basic.description') }} {{ __('basic.unit price') }} {{ __('basic.quantity') }} {{ __('basic.tax') }} {{ __('basic.final price') }}
{{ $item->categorizable->name }} {{ $item->description }}
{{ $item->price }} {{ $quotation->currency->code }}
{{ $item->qty }}
{{ $item->tax }} {{ $quotation->currency->code }}
{{ $item->final_price }} {{ $quotation->currency->code }}
{{ __('basic.subtotal') }}
{{ $quotation->items_price }}{{ $quotation->currency->code }}
{{ __('basic.discount') }}
@if (!empty($quotation->discount)) {{ $quotation->discount }} {{ $quotation->currency->code }} @else 0 {{ $quotation->currency->code }} @endif
{{ __('basic.tax') }}
@if (!empty($quotation->total_tax)) {{ $quotation->total_tax }} {{ $quotation->currency->code }} @else 0 {{ $quotation->currency->code }} @endif
{{ __('basic.total price') }}
{{ $quotation->final_price }} {{ $quotation->currency->code }}
{{ $quotation->description }}
{{-- for payments --}} @if ($quotation->accepted_invoice)) @else
{{ __('basic.no invoice') }}
@endif
{{ __('patientappo.invoice final msg') }}
{{ __('basic.total amount') }}

{{ $quotation->final_price }} {{ $quotation->currency->code }}

@endsection @section('js') @endsection