@extends('layouts.master')
@section('title', \Lang::get('global.dashboard'))
@section('css')
@stop
@section('content')
@lang('global.invoice'): {{ $invoice['result']['reference'] }}
@if($form)
@include('form.partials.form', ['form' => $form, 'invoice' => true])
@endif
{!! $invoice['result']['template']['value'] !!}
@if($receipt['status'] == 200)
@lang('dashboard.receipt_list') |
# |
@lang('dashboard.receipt_number') |
@lang('global.currency') |
@lang('global.amount') |
@lang('global.status') |
@lang('global.date') |
@lang('global.action') |
@php
$i = 1;
@endphp
@foreach($receipt['result'] as $no => $receipt)
@if($receipt['code'])
{{ $i++ }} |
{{ $receipt['code'] }} |
{{ $receipt['currency_code'] }} |
{{ $receipt['amount'] }} |
{{ ucfirst($receipt['payment_status']) }} |
{{ date('d M Y', strtotime($receipt['created_at'])) }} |
@lang('dashboard.view_receipt') |
@endif
@endforeach
@endif
@php
$payment_lock = false;
@endphp
@if($invoice['result']['invoice_status_type_id'] == 3 || $invoice['result']['invoice_status_type_id'] == 7 || $invoice['result']['invoice_status_type_id'] == 4 || $invoice['result']['invoice_status_type_id'] == 2 || $invoice['result']['invoice_status_type_id'] == 9 || $invoice['result']['invoice_status_type_id'] == 10)
@php
$payment_lock = true;
@endphp
@endif
@if(Request::session()->get('event_code'))
@php
$event = Api::retrieveEvent(Request::session()->get('event_code'));
@endphp
@if($event['status'] == 200)
@if(isset(json_decode($event['result']['parameter'], true)['payment']))
@if(json_decode($event['result']['parameter'], true)['payment'] == 0)
@php
$payment_lock = true;
@endphp
@endif
@endif
@endif
@endif
@if(!$payment_lock)
@if($list_payment_gateway['status'] == 200)
@lang('dashboard.accepted_payment_methods') |
@foreach($list_payment_gateway['result'] as $gateway)
@php
$gateway_parameter = json_decode($gateway['parameters'], true);
$show_gateway = false;
if(isset($gateway_parameter['display'])){
if($gateway_parameter['display'] == 1){
$show_gateway = true;
}
}else{
$show_gateway = true;
}
@endphp
@if($show_gateway)
{{ $gateway['name'] }}
{{ $gateway['additional_percentage'] != 0 ? "(".\lang::get('dashboard.additional_admin_charge')." ".$gateway['additional_percentage']."%)" : ""}}
{{ $gateway['additional_fixed_charge'] != 0 ? "(".\lang::get('dashboard.additional_fixed_rate_charge')." ".$gateway['additional_fixed_charge'].")" : ""}}
|
@lang('dashboard.pay_now')
|
@endif
@endforeach
@endif
@endif
{{-- Popup modal --}}