@extends('layouts.master') @section('title', 'Invoice | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', $invoice_type) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))
@endif @endsection @section('content'){{ $receivable_type_title }}
type == 0) href="{{ route('sett.patient.show', $invoice->receivable->id ?? "") }}" @else @if ($invoice->receivable_type === 'App\Models\Invoice\Debtor') href="{{ route('sett.invo_debtor', $invoice->receivable->id ?? "") }}" @else href=" {{ route('sett.invo_debtor_doctor', $invoice->receivable->id ?? "") }}" @endif @endif > {{ $receivable_type_name }}{{ __('basic.id') }} {{ $invoice->new_id }}
{{ $invoice->code }}
{{ $invoice->branch->name }} @if ($invoice->worker) | {{ $invoice->worker->name }} @endif
{{ date('d M Y', strtotime($invoice->created_at)) }}
No attached
@endif{{ date('d M Y', strtotime($invoice->paid_date)) }}
| {{ __('basic.item') }} | {{ __('basic.description') }} | {{ __('basic.unit price') }} | {{ __('basic.quantity') }} | {{ __('basic.tax') }} | {{ __('basic.final price') }} |
|---|---|---|---|---|---|
| {{ $item->categorizable->name }} @if ($item->days) for {{ $item->days }} days @endif | {{ $item->description }} |
{{ $item->price }}
{{ $invoice->currency->code }}
|
{{ $item->qty }} | {{ $item->tax }} |
{{ $item->final_price }}
{{ $invoice->currency->code }}
|
| {{ __('basic.date') }} | {{ __('basic.entry') }} | {{ __('basic.payment') }} | {{ __('basic.treasury') }} | {{ __('basic.amount') }} |
|---|---|---|---|---|
|
{{ date('d M Y', strtotime($item_p->paid_date)) }}
@if ($item_p->worker)
{{ __('basic.worker') }}: {{ $item_p->worker->full_name }} @endif |
{{ $item_p->entry->new_id }}
|
{{ $item_p->new_id }}
|
{{ $item_p->treasury->name }}
|
{{ $item_p->amount }}
{{ $invoice->currency->code }}
|
| {{ __('basic.transaction') }} | {{ __('basic.price') }} | {{ __('basic.warehouse') }} | {{ __('basic.quantity after') }} |
|---|---|---|---|
@if($item_iv->type == 0)
@php
$trans_inventory_icon = "fa-plus";
$trans_inventory_color = "text-green";
@endphp
@else
@php
$trans_inventory_icon = "fa-minus";
$trans_inventory_color = "text-red";
@endphp
@endif
{{ $item_iv->quantity }} |
{{ $item_iv->price . " " . $item_iv->currency->code }}
@if ($item_iv->worker)
worker: {{ $item_iv->worker->full_name }} @endif |
{{ $item_iv->warehouse->name }}
|
{{ $item_iv->quantity_after }} |
{{ __('basic.not paid') }}
@elseif (in_array($invoice->status, [1, 2])){{ $invoice->final_price - $invoice->sum_payment }} {{ $invoice->currency->code }}
@else{{ $invoice->final_price }} {{ $invoice->currency->code }}
@endif