@extends('layouts.pdf') @section('title') {{__('Receipt')}}-{{$group['id']}}-{{date('Y-m-d')}} @endsection @section('content')
@foreach($group['tests']->where('cancelled', '!=', 1) as $test) @endforeach @foreach($group['packages'] as $package) @endforeach @if($group['mailing_fee'] > 0) @endif @if($group['duplicate_fee'] > 0) @endif @foreach($group->attachments->where('group_or_number', '!=', null) as $pm) @endforeach
{{__('Test Name')}} {{__('Price')}}
{{formated_price($test['price'])}}
{{formated_price($package['price'])}}
{{__('Mail Fee')}} {{formated_price($group['mailing_fee'])}}
{{__('Duplicate Fee')}} {{formated_price($group['duplicate_fee'])}}
{{__('Subtotal')}} {{formated_price($group['subtotal'])}}
{{__('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'])}}
{{__('OR Number')}} {{$pm->group_or_number}} Date: {{ date('F d, Y', strtotime($pm['created_at'])) }}
@endsection