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

Sent Successfully

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

@endif @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('patientappo.invoice search') }}
{{ __('basic.statistics') }} {{ __('basic.monthly st') }} {{ __('basic.daily st') }} {{ __('basic.new purchase invoice') }} {{ __('basic.search filter') }}
{{ __('basic.invoices') }}
{{ __('basic.invoices') }}
@foreach ($invoices as $item) @endforeach
{{ __('basic.date') }} {{ __('basic.client') }} {{ __('basic.due date') }} {{ __('basic.worker') }} {{ __('basic.status') }} {{ __('basic.paid amount') }} {{ __('basic.total amount') }} {{ __('basic.handle') }}
{{ $item->inv_date }}

{{ $item->code }}

@if($item->receivable_type === "App\Models\Patient\Patient") {{ $item->receivable->full_name }} @else {{ $item->receivable->company_name }} @endif @if($item->due_date) {{ $item->due_date }} @else {{ __('basic.no due date') }} @endif @if($item->creator) {{ $item->creator->full_name }} @endif @if ($item->status == 0) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = __('basic.not paid'); @endphp @elseif ($item->status == 1) @php $text_color_invoice = 'pend-color-btn'; $msg_invoice = __('basic.pending'); @endphp @elseif ($item->status == 2) @php $text_color_invoice = 'prog-color-btn'; $msg_invoice = __('basic.installment'); @endphp @elseif ($item->status == 3) @php $text_color_invoice = 'done-color-btn'; $msg_invoice = __('basic.paid'); @endphp @elseif ($item->status == 4) @php $text_color_invoice = 'cancel-color-btn'; $msg_invoice = __('basic.refund'); @endphp @endif {{ $msg_invoice }} {{ $item->total_paid . " " . $item->currency->code }}
{{ $item->final_price . " " . $item->currency->code }}
{{ __('patientappo.waiting for paying') }}
{{ __('basic.nothing to show') }}
{{ __('basic.paid invoices') }}
{{ __('basic.nothing to show') }}
@endsection @section('js') @php $chart_color = ['#323ac8', '#38dfa8','#1a78f1', '#d13c62', '#12c7d9', '#03c2c3', '#5035df', '#17a673', '#2e59d9', '#9aeded', '#f3d56a', '#7c859d', '#a4adc5', '#80142f', '#33d293', '#bed233', '#3958e9', '#10c86f', '#654fb6', '#a44fb6', '#89728e', '#c85110', '#6d769d', '#1b6954', '#204494', '#94206b', '#948320', '#209493', '#292094', '#203a65', '#4e6fa5', '#e29031', '#e23168', '#31e0e2', '#e29131', '#319fe2', '#8131e2', '#31a8e2', '#31e2c0', '#31c3e2', '#e2a931', '#3157e2']; @endphp @endsection