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

{{__('Invoices')}}

@endsection @section('content')

{{__('Invoice')}}

{{__('Barcode')}} : {{$group['barcode']}} barcode
{{__('Patient Code')}} : @if(isset($group['patient'])) {{ $group['patient']['code'] }} @endif {{__('Patient Name')}} : @if(isset($group['patient'])) {{ $group['patient']['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
{{__('Registration Date')}} : {{ date('Y-m-d H:i',strtotime($group['created_at'])) }} {{__('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.groups.modals.print_barcode') @endsection @section('scripts') @endsection