@extends('layouts.app') @section('title') {{ __('Invoice') }} @endsection @section('css') @endsection @section('breadcrumb')

{{ __('Invoices') }}

@endsection @section('content')

{{ __('Invoice') }}

{{-- --}} {{-- --}}
{{ __('Barcode') }} : {{ $group['barcode'] }} {{ __('Requisition No.') }} : {{ $group['invoice_no'] }} {{-- barcode
--}}
{{ __('Invoice Date') }} : {{ date('F d, Y', strtotime($group['created_at'])) }}
{{ __('Patient Code') }} : @if (isset($group['patient'])) {{ $group['patient']['code'] }} @endif {{ __('Patient Name') }} : @if (isset($group['patient'])) {{ $group['patient']['name'] . ' ' . $group['patient']['last_name'] }} @endif
{{ __('Age') }} : @if (isset($group['patient'])) {{ $group['patient']['age'] }} @endif {{ __('Gender') }} : @if (isset($group['patient'])) {{ __($group['patient']['gender']) }} @endif
{{ __('Doctor') }} : @if (isset($group['doctor'])) {{ $group['doctor']['name'] }} @endif {{ __('Contract') }} : @if (isset($group['contract'])) {{ $group['contract']['title'] }} @endif
{{ __('Doctor') }} : @if (isset($group['doctor2'])) {{ $group['doctor2']['name'] }} @endif {{ __('Institute') }} : @if (isset($group['institution'])) {{ $group['institution']['name'] }} @endif
{{ __('Sample collection') }} : {{ $group['sample_collection_date'] }}

{{--

{{ __('Due Date') }} : {{ date('d/m/Y', strtotime($group['created_at'])) }}

--}} @foreach ($group['tests'] as $test) @endforeach @foreach ($group['cultures'] as $culture) @endforeach @foreach ($group['packages'] as $package) @endforeach {{-- --}}
{{ __('Test Name') }} {{ __('Price') }}
{{ formated_price($test['price']) }}
{{ formated_price($culture['price']) }}
{{ formated_price($package['price']) }}
{{ __('Subtotal') }} {{ formated_price($group['subtotal']) }}
{{ __('Discount') }} {{ formated_price($group['discount']) }}
{{ __('Total') }} {{ formated_price($group['total']) }}
{{ __('Paid') }}
@foreach ($group['payments'] as $payment) {{ formated_price($payment['amount']) }} {{ __('On') }} {{ $payment['date'] }} {{ __('By') }} {{ $payment['payment_method']['name'] }}
@endforeach
@if (count($group['payments'])) {{ formated_price($group['paid']) }} @else {{ formated_price(0) }} @endif
{{ __('Due') }} {{ formated_price($group['due']) }}
@include('admin.requisitions.modals.print_barcode') @endsection @section('scripts') @endsection