|
{{$invoice['id']}}
|
@if($invoice['canceled'])
{{__('Canceled')}}
@else
{{__('Confirmed')}}
@endif
|
{{$invoice['created_at']}}
|
@if(isset($invoice['branch']))
{{$invoice['branch']['name_'.app()->getLocale()]}}
@endif
|
@if(isset($invoice['created_by_user']))
{{$invoice['created_by_user']['name']}}
@elseif(isset($invoice['created_by_laboratory']))
{{$invoice['created_by_laboratory']['name']}}
@elseif(isset($invoice['created_by_contract']))
{{$invoice['created_by_contract']['name']}}
@elseif(isset($invoice['created_by_referral']))
{{$invoice['created_by_referral']['name']}}
@endif
|
@if(isset($invoice['patient']))
{{$invoice['patient']['name']}}
@endif
|
@if(isset($invoice['referral']))
{{$invoice['referral']['name']}}
@endif
|
@if(isset($invoice['from_laboratory']))
{{$invoice['from_laboratory']['name']}}
@endif
|
@if(isset($invoice['contract']))
{{$invoice['contract']['name']}}
@endif
|
@php
$count=1;
$count_tests=count($invoice['tests']);
@endphp
@foreach($invoice['tests'] as $test)
{{$test['test']['name']}} : {{$test['price']}} @if($count_tests!==$count) @endif
@php
$count++;
@endphp
@endforeach
@if(count($invoice['cultures']))
@endif
@php
$count=1;
$count_cultures=count($invoice['cultures']);
@endphp
@foreach($invoice['cultures'] as $culture)
{{$culture['culture']['name']}} : {{$culture['price']}} @if($count_cultures!==$count) @endif
@php
$count++;
@endphp
@endforeach
@if(count($invoice['packages']))
@endif
@php
$count=1;
$count_packages=count($invoice['packages']);
@endphp
@foreach($invoice['packages'] as $package)
{{$package['package']['name']}} : {{$package['price']}} @if($count_packages!==$count) @endif
@php
$count++;
@endphp
@endforeach
|
{{format_money($invoice['subtotal'])}} |
{{format_money($invoice['discount_total'])}} |
{{format_money($invoice['total'])}} |
{{format_money($invoice['paid'])}} |
{{format_money($invoice['due'])}} |
@if(isset($invoice['discount_note']))
{{$invoice['discount_note']['name']}}
@endif
|
@endforeach