{{-- Extends layout --}} @extends('layout.public') {{-- Content --}} @section('content') @php $invoice_date = $invoice->invoice_date; $invoice_month = date('m',strtotime($invoice_date)); $invoice_year = date('Y',strtotime($invoice_date)); $invoice_no = $invoice->invoice_no; $org_code = $invoice->organisation->short_code; if($invoice_month<4) $invoice_year--; $nextyear = $invoice_year+1; $invoice_number = $org_code.'/'.$invoice_no.'/'.$invoice_year.'-'.$nextyear; if($invoice->status==1) $invoice_status = 'Paid'; else if($invoice->status==0) $invoice_status = 'Pending'; else $invoice_status = 'Cancelled'; //get adults and child count from tickets foreach($invoice->tickets as $ticket) { $adultCount = $ticket->noof_adult; $childCount = $ticket->noof_child; } $totalCount = $adultCount+$childCount; $secretkey='KSSTM'.$invoice_number.$invoice_date; $secretmd5 = md5($secretkey); $qr_string=$invoice_number.'~'.$invoice_date.'~'.'Adult:'.$adultCount.'~'.'Child:'.$childCount.'~'.$invoice_status.'~'.'Secret:'.$secretmd5; @endphp
{{ csrf_field() }}
Cancel TicketCancellation Policy
@php $i=0; $totalrefund = 0; @endphp @foreach($invoice->tickets as $ticket) @php $i++; @endphp @php $totalrefund += $refundticket[$ticket->id]; @endphp @endforeach
# Ticket# Facility Show Time Ticket Amount Refund Amount
{{$i}} {{$org_code}}/{{$ticket->facility->short_code}}/{{$ticket->ticket_no}}/{{$invoice_year}}-{{$nextyear}} {{$ticket->facility->facility_name}} {{$ticket->showtime->from_time}} - {{$ticket->showtime->to_time}}  {{$ticket->amount}}  {{$refundticket[$ticket->id]}}

Total Refund Amount: {{$totalrefund}}

@endsection