@extends('layouts.master') @section('title') {{ __('sentence.View billing') }} @endsection @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (session('success'))
{{ session('success') }}
@endif
{!! clean(App\Setting::get_option('header_left')) !!}

{{ __('sentence.Date') }} : {{ $billing->created_at->format('d-m-Y') }}
{{ __('sentence.Reference') }} : {{ $billing->reference }}
{{ __('sentence.Patient Name') }} : {{ $billing->User->name }}

{{ __('sentence.Invoice') }}


@forelse ($billing_items as $key => $billing_item) @empty @endforelse @empty(!$billing_item) @if(App\Setting::get_option('vat') > 0) @endif @endempty
# {{ __('sentence.Item') }} {{ __('sentence.Amount') }}
{{ $key+1 }} {{ $billing_item->invoice_title }} {{ $billing_item->invoice_amount }} {{ App\Setting::get_option('currency') }}
{{ __('sentence.Empty Invoice') }}
{{ __('sentence.Sub-Total') }} {{ $billing_items->sum('invoice_amount') }} {{ App\Setting::get_option('currency') }}
{{ __('sentence.VAT') }} {{ App\Setting::get_option('vat') }}%
{{ __('sentence.Total') }} {{ $billing_items->sum('invoice_amount') + ($billing_items->sum('invoice_amount') * App\Setting::get_option('vat')/100) }} {{ App\Setting::get_option('currency') }}


{!! clean(App\Setting::get_option('footer_left')) !!}

{!! clean(App\Setting::get_option('footer_right')) !!}

@endsection @section('footer') @endsection