@php /*-------------------------------------------- 학비정산 요청 목록 template --------------------------------------------*/ // 정산서 진행단계 목록 $codes_display = ConfigCode::getCodes('INVOICE_STATUS'); $codes_display = $codes_display->filter(function($value, $key) { // 환불정산서 관련 진행단계 제외 return !in_array($key, ['INVOICE_REFUND', 'AGENCY_REMIT', 'AGENCY_REMIT_COMPLETED']); }); @endphp
@foreach ($codes_display as $code)
{{ $code->name }}
@endforeach
@if (isLogin('staff')) @else @endif @if (isLogin('staff')) @endif @if (isset($info_invoice)) @forelse ($info_invoice as $invoice) @php // 링크 생성 if (isLogin('staff') || $invoice->code_status !== 'PROCESS') { if ($invoice->code_status === 'PROCESS') { // 작성중 $route = 'invoices.'.$invoice->invoice_type.'.edit'; } else { // 작성완료 $route = 'invoices.'.$invoice->invoice_type.'.show'; } $link = URL::route($route, $invoice->process_invoice_id); } else { $link = null; } @endphp @if ($link) @else @endif @if (isLogin('staff')) @endif @empty @endforelse @endif
{{ Lang::get('template_process.word.type.short') }} {{ Lang::get('template_process.word.invoice_date.short') }} {{ Lang::get('template_process.word.school_name.short') }} {{ Lang::get('template_process.word.invoice_status.short') }}{{ Lang::get('template_process.word.management.short') }}
{{ $invoice->invoice_type_name or '' }}
{{ date('Y.m.d', $invoice->invoice_date) }}
{{ $invoice->school_name or ' ' }}
{{ $invoice->code_status_name or '' }}
{{ $invoice->invoice_type_name or '' }}
{{ date('Y.m.d', $invoice->invoice_date) }}
{{ $invoice->school_name or ' ' }}
{{ $invoice->code_status_name or '' }}
{{-- 작성중일 경우 --}} @if ($invoice->code_status === 'PROCESS') {{-- 작성완료일 경우 --}} @elseif (in_array($invoice->code_status, ['INVOICE'])) {{-- 학비정산서 송금완료일 경우 환불정산서 링크 제공 --}} @elseif ($invoice->code_status === 'SCHOOL_REMIT_COMPLETED') @endif
{{ Lang::get('template_process.desc.no_registered_invoices') }}
{{ $info_invoice->links('template.form.pagination') }}