@extends('admin.main') @section('content') @include('admin.msg') @if ($purchase_details->status == 'paid') @endif
Profile Image

{{(!empty($purchase_details->patient->title) ? ucfirst($purchase_details->patient->title) : '').' '.(!empty($purchase_details->patient->name) ? ucfirst($purchase_details->patient->name) : '')}} @if(!empty($purchase_details->patient->patientCategory)) - @endif X

{{!empty($purchase_details->patient) ? $purchase_details->patient->gender : ''}} | {{!empty($purchase_details->patient) ? (\Carbon\Carbon::parse($purchase_details->patient->dob_or_age)->age) : ''}} Years | {{!empty($purchase_details->patient) ? $purchase_details->patient->id : ''}}
@csrf
@if(!empty($purchase_items)) @foreach($purchase_items as $index=>$val) @endforeach @endif
# Service Name Qty Unit Price GST % GST In Rs Discount Total Price
{{$loop->index+1}} @if($services->pluck('service_name')->contains($val->service_name)) @else @endif

Bill Summary
Total Billed Amount: ₹ {{$purchase_details->base_amount}}
Discount Amount: - ₹ {{$purchase_details->total_discount}}
Tax Amount: ₹ {{$purchase_details->total_tax}}
Final Amount: ₹ {{$purchase_details->final_amount}}
Pre-deposit: - ₹ {{$purchase_details->pre_deposite}}
Received Amount: - ₹ {{$purchase_details->received_amount}}
Total Balance: ₹ {{$purchase_details->net_amount}}
Pay Bill
@if ($purchase_details->status != 'paid') @endif
Cash:
Online:
Remaining:
@if ($purchase_details->status == 'paid') @else @endif
@if($purchase_details->status != 'unpaid') @endif @include('admin.bill.print')
@if(!empty($refundInfo) && $purchase_details->status != 'unpaid')
Refund Amount Summary

Refund Amount : ₹ {{$purchase_details->refund_amount}}

Refund Reason : {{$refundInfo->refund_reason}}

Refund Date : {{$refundInfo->refund_date}}

@endif @endsection