@extends('layout') @section('title', 'Invoices') @section('css') @endsection @section('content')
NOT PAID INVOICE

@if (\Auth::user()->role != 10) @endif
Total Payment nominal : Rp {{ribuanWithComma($amount_unpaid)}}
@if(!$invoices_unpaids->isEmpty()) @php ($i = 1) @foreach($invoices_unpaids as $invoice) @php ($i++) @endforeach @endif
No Invoice Marketing Property Price Payment Remaining Duration Active Date End Date Inv. Type Status Actions
{{$invoice->no_invoice}}
{{@$invoice->user->nama}}
{{@$invoice->hotel->hotel_name}}
{{ribuanWithComma(@$invoice->invoice_details->sum('price'))}}
{{ribuanWithComma(@$invoice->payment_nominal)}}
{{ribuanWithComma(@$invoice->invoice_details->sum('price') - @$invoice->payment_nominal)}}
{{@$invoice->duration}} Day
{{ dateFormat(@$invoice->active_date,'d-m-Y') }}
{{ dateFormat(@$invoice->end_date,'d-m-Y') }}
{{ $invoice->invoice_type != null ? config('custom.jenis_invoice')[@$invoice->invoice_type] : '-'}}
{{config('custom.status_invoice')[@$invoice->invoice_status]}}
@if ($invoice->extended_status == 0) {{-- --}} @endif @if (in_array(\Auth::user()->role,[1,30])) @endif
PAID INVOICE


{{-- --}}
Total Payment nominal : Rp {{ribuanWithComma($amount_paid)}}
@if(!$invoices_paids->isEmpty()) @php ($i = 1) @foreach($invoices_paids as $invoice) @php ($i++) @endforeach @endif
No Invoice Marketing Property Price Duration Active Date End Date Inv. Type Status Actions
{{$invoice->no_invoice}}
{{@$invoice->user->nama}}
{{@$invoice->hotel->hotel_name}}
{{ribuanWithComma(@$invoice->invoice_details->sum('price'))}}
{{@$invoice->duration}} Day
{{ dateFormat(@$invoice->active_date,'d-m-Y') }}
{{ dateFormat(@$invoice->end_date,'d-m-Y') }}
{{ $invoice->invoice_type != null ? config('custom.jenis_invoice')[@$invoice->invoice_type] : '-'}}
{{config('custom.status_invoice')[@$invoice->invoice_status]}}
@if ($invoice->extended_status == 0) {{-- --}} @endif @if (in_array(\Auth::user()->role,[1,30])) @endif
@endsection @section('js') @endsection