@extends('layouts.master-layouts') @section('title') {{ __('Invoice Details') }} @endsection @section('content') @component('components.breadcrumb') @slot('title') Invoice Details @endslot @slot('li_1') Dashboard @endslot @slot('li_2') Invoice List @endslot @slot('li_3') Invoice Details @endslot @endcomponent

{{ __('Invoice #') }} {{ $invoice_detail->id }}

logo

{{ __('Patient Details') }}
{{ $invoice_detail->patient->first_name . ' ' . $invoice_detail->patient->last_name }}
{{-- {{ 'd' }} --}} {{ $invoice_detail->patient->mobile }}
{{ $invoice_detail->patient->email }}
{{ __('Doctor Details') }}
{{ @$invoice_detail->doctor->user->first_name . ' ' . @$invoice_detail->doctor->user->last_name }}
{{-- {{ 'd' }} --}} {{ @$invoice_detail->doctor->user->mobile }}
{{ @$invoice_detail->doctor->user->email }}
{{ __('Payment Details') }}
{{ __('Payment Mode :') }} {{ $invoice_detail->payment_mode }}
{{ __('Payment Status :') }} {{ $invoice_detail->payment_status }}
@if ($invoice_detail->transaction != null) {{ __('Order Id :') }} {{ $invoice_detail->transaction->order_id }}
{{ __('Transaction No:') }} {{ $invoice_detail->transaction->transaction_no }}
{{ __('Payment Method:') }} {{ $invoice_detail->transaction->payment_method }}
@endif
{{ __('Invoice date: ') }}{{ $invoice->created_at }}
{{ __('Appointment date: ') }}{{ $invoice->appointment->appointment_date . ' ' . $invoice->appointment->timeSlot->from . ' to ' . $invoice->appointment->timeSlot->to }}

{{ __('Invoice summary') }}

@php $sub_total = 0; @endphp @foreach ($invoice_detail->invoice_detail as $item) @php $sub_total += $item->amount; @endphp @endforeach
{{ __('No.') }} {{ __('Title') }} {{ __('Amount') }}
{{ $loop->index + 1 }} {{ $item->title }} ${{ $item->amount }}
{{ __('Sub Total') }} ${{ $sub_total }}
{{ __('Tax (5%)') }} ${{ ($sub_total * 5) / 100 }}
{{ __('Total') }}

${{ $sub_total + ($sub_total * 5) / 100 }}

@endsection