@extends('front.layouts.master') @section('title', isset($title) ? $title : 'Home') @section('description', isset($description) ? $description : '') @section('keywords', isset($keywords) ? $keywords : '') @section('content')
@include('front.layouts.include.user_profile_sidebar', ['menu' => 'membership'])

{{ __('Invoices') }}

@if (count($invoices) > 0)
@foreach ($invoices as $invoice) @endforeach
{{__('Amount')}} {{__('Description')}} {{__('Status')}}
{{ $invoice->total }} {{$invoice->reason_translate ? $invoice->reason_translate : $invoice->reason }} @if($invoice->payment_status == 'paid') {{ __($invoice->payment_status) }} @else {{ __($invoice->payment_status) }} @endif
{{__('Total')}}
@if ( $total->total > 0) {{ $total->total }} JD @else 0 JD @endif
@if ( $total->total > 0) @if( ($invoice->membership->type=='individual' && $invoice->membership->sub_type=='Annual') || ($invoice->membership->type=='employee' && $invoice->membership->sub_type=='Individual') || ($invoice->membership->type=='employee' && $invoice->membership->sub_type=='Family') || ($invoice->membership->type=='family'))
@csrf
{{ __('Would you like to change your membership before paying your due invoices')}} ?
{{-- if yes --}} {{-- if no --}}
@else {{-- دفع مباشرة --}} {{-- لان الميمبرشيب لا يمكن تغييره --}}
@csrf
@endif @endif @else
{{ __('N/A') }}
@endif
@endsection @push('post_script') @endpush