@php // 인보이스 파일 $files_invoice = App\Model\ProcessFile::where('process_id', $info_invoice->process_id) ->where('category', 'Invoice') ->orderBy('ord') ->get(); // 학비영수증 파일 $file_payment = App\Model\ProcessFile::where('process_id', $info_invoice->process_id) ->where('category', 'Tuition Payment Receipt') ->orderBy('ord') ->get(); // 파일업로드에 전달할 데이터 $files = []; if ($file_payment) { foreach ($file_payment as $file) { array_push($files, [ 'file_id' => $file->process_file_id, 'download' => URL::route('file.upload.download', ['process', $file->process_file_id]), 'preview' => URL::route('file.upload.view', ['process', $file->process_file_id]), 'ext' => $file->ext, 'name' => $file->name, 'size' => $file->size, 'category' => $file->category, 'register' => $file->created_member_guard === 'agent' ? Lang::get('invoice.word.agency') : Lang::get('invoice.word.edm'), 'date' => null, 'category_enabled' => false, 'delete_enabled' => false, ]); } } @endphp @include('html.header.select2') @include('html.header.fileupload') @include('html.header.input') {{-- 학교직접송금 --}}
{{ Lang::get('invoice.word.invoice') }} |
@if ($files_invoice)
{{ Lang::get('invoice.desc.invoice_registration_progress') }} @endif |
---|---|
{{ Lang::get('invoice.word.payment_receipt') }} |
@include('template.form.input-fileupload', [ 'multiple' => true, 'file' => $files, 'invisible' => ['preview', 'category', 'register'], 'addData' => ['file_category[]' => 'Tuition Payment Receipt'] ]) |