@extends('layouts.pdf') @section('title') {{__('Receipt')}}-{{$group['id']}}-{{date('Y-m-d')}} @endsection @section('content')
@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'])}}
@endsection