@extends('layout') @section('css') @endsection @section('content')
@if (in_array(\Auth::user()->role,[1,2,5]))
@csrf
Filter Coload
Filter Tahun

@endif
Filter
Container
Tanggal Pembuatan

Total Tagihan : Rp {{ribuan($tottagihan)}}
Total Pembayaran : Rp {{ribuan($totbayar)}}
Total Kurang Bayar : Rp {{ribuan($totpiutang)}}
{{-- @if (\Auth::user()->role == 1) @endif --}} @if(!$invoices->isEmpty()) @php($i = 1) @foreach($invoices as $invoice) {{-- @if(\Auth::user()->role==1) @endif --}} @php($i++) @endforeach @else @endif
No No. Invoice No. Container Nama Marketing Tagihan Pembayaran Kurang Pembayaran Tanggal Lunas StatusAction
{{ $i }} {{ $invoice->no_invoice }} {{@$invoice->invoice_detail->first()->no_container?@$invoice->invoice_detail->first()->no_container:'-'}} {{ ucwords(@$invoice->customer->nama) }} - {{ @$invoice->customer->shipping_mark }} {{ ucwords(@$invoice->customer->sales->nama) }} Rp {{ ribuan($invoice->total_tagihan) }} Rp {{ ribuan($invoice->total_bayar) }} Rp {{ ribuan(($invoice->total_tagihan - $invoice->total_bayar)) }} {{ $invoice->status == 4? date('d/m/Y', strtotime($invoice->tgl_lunas)):'-' }} {{ config('custom.status_invoice.'.$invoice->status) }}
Data Kosong
@endsection @section('js') @endsection