From c67fabcbe3c69a428c5a8625c777be8bd87aa41b Mon Sep 17 00:00:00 2001 From: myqnrrhmn Date: Thu, 26 Jun 2025 14:47:47 +0700 Subject: [PATCH] feat: new menu cooperation finish in dashboard --- .../CooperationCompletionController.php | 74 ++++- .../Dashboard/DatatableController.php | 83 +++++- .../Dashboard/MediaCooperationController.php | 79 ++++- .../Requests/CooperationCompletionRequest.php | 12 + app/Http/Requests/UserRequest.php | 4 +- app/Models/CooperationCompletion.php | 2 + ...8_create_cooperation_completions_table.php | 2 + .../cooperation-completions/index.blade.php | 163 ++++++++++ .../index/process.blade.php | 278 ++++++++++++++++++ .../index/show.blade.php | 270 +++++++++++++++++ .../cooperation-completions/show.blade.php | 54 +++- .../completions/index-media.blade.php | 48 +++ .../views/partials/app/datatable.blade.php | 29 ++ .../partials/dashboard/sidebar.blade.php | 6 + .../views/partials/homepage/header.blade.php | 2 +- routes/web.php | 7 +- 16 files changed, 1096 insertions(+), 17 deletions(-) create mode 100644 resources/views/dashboard/cooperation-completions/index.blade.php create mode 100644 resources/views/dashboard/cooperation-completions/index/process.blade.php create mode 100644 resources/views/dashboard/cooperation-completions/index/show.blade.php diff --git a/app/Http/Controllers/Dashboard/CooperationCompletionController.php b/app/Http/Controllers/Dashboard/CooperationCompletionController.php index 586cbd9..ec46d00 100644 --- a/app/Http/Controllers/Dashboard/CooperationCompletionController.php +++ b/app/Http/Controllers/Dashboard/CooperationCompletionController.php @@ -13,6 +13,16 @@ class CooperationCompletionController extends Controller { + // Main page: Penyelesaian Kerjasama + public function index(Request $request){ + return view('dashboard.cooperation-completions.index', [ + 'title' => 'Penyelesaian Kerjasama', + 'date' => $request->input('date', null), + 'month' => $request->input('month', null), + 'year' => $request->input('year', null), + ]); + } + public function store(CooperationCompletionRequest $request, $id){ $validatedData = $request->validated(); @@ -21,7 +31,16 @@ public function store(CooperationCompletionRequest $request, $id){ $validatedData['invoice'] = store_file($validatedData['invoice'], 'uploads/cooperation-completions')['randomFileName']; - $validatedData['other_document'] = store_file($validatedData['other_document'], 'uploads/cooperation-completions')['randomFileName']; + $validatedData['bank_reference'] = store_file($validatedData['bank_reference'], 'uploads/cooperation-completions')['randomFileName']; + + $validatedData['electronic_tax_invoice'] = store_file($validatedData['electronic_tax_invoice'], 'uploads/cooperation-completions')['randomFileName']; + + if(isset($validatedData['other_document'])){ + $validatedData['other_document'] = store_file($validatedData['other_document'], 'uploads/cooperation-completions')['randomFileName']; + }else{ + $validatedData['other_document'] = null; + } + $validatedData['order_id'] = decrypt_id($id); $validatedData['media_id'] = Auth::user()->company->media->id; @@ -45,6 +64,24 @@ public function show($mediaOrderId, $id){ ]); } + public function showIndex($id){ + $cooperationCompletion = CooperationCompletion::findOrFail(decrypt_id($id)); + + return view('dashboard.cooperation-completions.index.show', [ + 'title' => 'Detail Penyelesaian Kerjasama', + 'cooperationCompletion' => $cooperationCompletion + ]); + } + + public function processIndex($id){ + $cooperationCompletion = CooperationCompletion::findOrFail(decrypt_id($id)); + + return view('dashboard.cooperation-completions.index.process', [ + 'title' => 'Detail Penyelesaian Kerjasama', + 'cooperationCompletion' => $cooperationCompletion + ]); + } + public function accept($id){ try{ @@ -118,4 +155,39 @@ public function rejectAction(Request $request, $mediaOrderId, $id){ return redirect()->back()->with('success-status', 'Berhasil menolak penyelesaian kerjasama.'); } + + public function rejectActionIndex(Request $request, $id){ + + try{ + $validatedData = $request->validate([ + 'rejection_reason' => ['required'], + ], [ + 'rejection_reason.required' => 'Alasan penolakan wajib diisi.', + ]); + + $completion = CooperationCompletion::with(['order', 'media'])->findOrFail(decrypt_id($id)); + + $completion->update([ + 'status' => '2', + 'rejection_reason' => $validatedData['rejection_reason'] + ]); + + // Announcements + $announcementData = [ + 'headline' => 'Formulir penyelesaian kerjasama '. $completion->order->cooperation->name .' telah ditolak', + 'content' => '

Admin telah menolak laporan formulir penyelesaian kerjasama Anda.

', + 'enhancer_id' => Auth::id() + ]; + $createdAnnouncement = Announcement::create($announcementData); + $createdAnnouncement->users()->attach($completion->media->company->user->id, ['category' => 'system']); + // End Announcements + + }catch(\Exception $e){ + Log::error("CooperationCompletions (rejectAction): ". $e); + return redirect()->back()->with('failed-status', 'Gagal menolak penyelesaian kerjasama'); + } + + return redirect()->back()->with('success-status', 'Berhasil menolak penyelesaian kerjasama.'); + + } } diff --git a/app/Http/Controllers/Dashboard/DatatableController.php b/app/Http/Controllers/Dashboard/DatatableController.php index f576f9c..22f7bfa 100644 --- a/app/Http/Controllers/Dashboard/DatatableController.php +++ b/app/Http/Controllers/Dashboard/DatatableController.php @@ -11,6 +11,7 @@ use App\Models\ContentRecap; use App\Models\ContentRecapClassification; use App\Models\Cooperation; +use App\Models\CooperationCompletion; use App\Models\CooperationProposal; use App\Models\GovernmentAgency; use App\Models\IssueManagement; @@ -468,8 +469,6 @@ public function governmentAgency(Request $request){ public function airingProofTheme(Request $request){ if ($request->ajax()) { - - $data = AiringProofTheme::all(); return DataTables::of($data) @@ -573,7 +572,6 @@ public function contentRecapClassification(Request $request){ public function news(Request $request){ if ($request->ajax()) { - $category = $request->input('category', 'all'); $year = $request->input('year', null); $month = $request->input('month', null); @@ -747,7 +745,6 @@ public function mediaAnnouncement(Request $request, $category){ ->findOrFail(Auth::user()->id) ->announcements; - return DataTables::of($data) ->addIndexColumn() ->addColumn('sent_at', function ($data) { @@ -2124,6 +2121,84 @@ class="text-dark" } + // Penyelesaian Kerjasama + public function cooperationCompletionIndex(Request $request){ + if ($request->ajax()) { + + if(is_role(['1', '5'])){ + $data = CooperationCompletion::with(['media.company'])->get(); + }else if(is_role(['3'])){ + $mediaId = Auth::user()->company->media->id; + $data = CooperationCompletion::with(['media.company', 'order.cooperation'])->where('media_id', '=', $mediaId)->get(); + } + + return DataTables::of($data) + ->addIndexColumn() + ->addColumn('cooperation', function ($data) { + return $data->order->cooperation->name; + }) + ->addColumn('media_name', function ($data) { + return $data->media->name; + }) + ->addColumn('company_name', function ($data) { + return $data->media->company->name; + }) + ->addColumn('email', function ($data) { + return $data->media->company->email; + }) + ->addColumn('status', function ($data) { + switch($data->status){ + case 0: + return 'Menunggu'; + case 1: + return 'Diterima'; + case 2: + return 'Ditolak + + '; + default: + return 'Tidak Diketahui'; + } + }) + ->addColumn('action', function ($data){ + $showUrl = route('dashboard.cooperation.completions.show.index', ['id' => encrypt_id($data->id)]); + + $processUrl = route('dashboard.cooperation.completions.process.index', ['id' => encrypt_id($data->id)]); + + // $rejectUrl = route('dashboard.cooperation.completions.reject', ['id' => encrypt_id($data->id)]); + + $dropdown = ''; + + return $dropdown; + }) + + ->rawColumns(['status', 'action']) + ->make(true); + } + + return response()->json(['error' => 'Unauthorized'], 401); + + } + public function cooperationArchive(Request $request){ if ($request->ajax()) { diff --git a/app/Http/Controllers/Dashboard/MediaCooperationController.php b/app/Http/Controllers/Dashboard/MediaCooperationController.php index db10ab9..6c73ebe 100644 --- a/app/Http/Controllers/Dashboard/MediaCooperationController.php +++ b/app/Http/Controllers/Dashboard/MediaCooperationController.php @@ -300,7 +300,12 @@ public function mediaProposalRejectAction(Request $request, $id, $proposalId){ } public function process($id, $process, $paramMediaId = null){ - $mediaCooperation = Cooperation::with(['media', 'mediaOrder.media'])->findOrFail(decrypt_id($id)); + $mediaCooperation = Cooperation::with([ + 'media', + 'mediaOrder.media', + 'mediaOrder.reports', + 'mediaOrder.completions' + ])->findOrFail(decrypt_id($id)); $data = [ 'process' => $process, @@ -309,23 +314,25 @@ public function process($id, $process, $paramMediaId = null){ 'mediaId' => is_role(['3']) ? Auth::user()->company->media->id : null ]; - if(is_role(['3'])){ + if (is_role(['3']) && $data['mediaOrder'] && $data['mediaOrder']->reports) { $reports = $data['mediaOrder']->reports->filter(function ($reports) use ($data) { return $reports->media_id == Auth::user()->company->media->id; }); - if(filled($reports)){ - + if (filled($reports)) { $isAllReportsAccepted = $reports->every(function ($item) { return $item->status === '1'; }); $data['isAllReportsAccepted'] = $isAllReportsAccepted && ($reports->count() === $data['mediaOrder']->required_reports); $data['isHaveReports'] = true; - }else{ + } else { $data['isAllReportsAccepted'] = false; $data['isHaveReports'] = false; } + } else { + $data['isAllReportsAccepted'] = false; + $data['isHaveReports'] = false; } // Tab Kerjasama @@ -439,6 +446,68 @@ public function process($id, $process, $paramMediaId = null){ } } + // if (is_role(['3'])) { + // // Pastikan mediaOrder dan relasi media tidak null + // if ($data['mediaOrder'] && $data['mediaOrder']->media && $data['mediaOrder']->media->where('id', $data['mediaId'])->first()) { + // $mediaOrderItem = $data['mediaOrder']->media->where('id', $data['mediaId'])->first(); + // $data['mediaOrderPivot'] = $mediaOrderItem->pivot; + // } else { + // $data['mediaOrderPivot'] = null; // atau abort(404) jika dianggap error penting + // } + + // $data['reporterMediaId'] = Auth::user()->company->media->id; + + // // Can Commented + // $reports = null; + + // if ($data['mediaOrder'] && $data['mediaOrder']->reports) { + // $reports = $data['mediaOrder']->reports->filter(function ($report) use ($data) { + // return $report->media_id == Auth::user()->company->media->id; + // }); + // } + + // if (filled($reports)) { + // $data['isAllReportsAccepted'] = $reports->every(function ($item) { + // return $item->status === '1'; + // }); + // $data['isHaveReports'] = true; + // } else { + // $data['isAllReportsAccepted'] = false; + // $data['isHaveReports'] = false; + // } + // // Can Commented + + // $reportCount = filled($reports) ? $reports->count() : 0; + // $data['reportCount'] = $reportCount; + + // $data['cooperationCompletion'] = $data['mediaOrder'] && $data['mediaOrder']->completions() + // ? $data['mediaOrder']->completions()->where('media_id', $data['mediaId'])->first() + // : null; + + // if ($data['mediaOrder'] && $reportCount === $data['mediaOrder']->required_reports) { + // $data['isReportsCompleted'] = true; + // } else { + // $data['isReportsCompleted'] = false; + // } + + // // $data['meuda'] + + // // dd($mediaCooperation); + + // return view('dashboard.media-cooperations.processes.reports.index-media', $data); + // } else { + // $data['mediaOrder'] = $mediaCooperation->mediaOrder; + // $data['reporterMedia'] = $paramMediaId ? Media::findOrFail(decrypt_id($paramMediaId)) : null; + // $data['reporterMediaId'] = $paramMediaId ? decrypt_id($paramMediaId) : null; + + // if (!$paramMediaId) { + // return view('dashboard.media-cooperations.processes.reports.index-admin', $data); + // } else { + // return view('dashboard.media-cooperations.processes.reports.index-media', $data); + // } + // } + + // Tab Selesai }else if($process === 'completion'){ $data['title'] = 'Penyelesaian'; diff --git a/app/Http/Requests/CooperationCompletionRequest.php b/app/Http/Requests/CooperationCompletionRequest.php index a0dfbe6..6ced8ca 100644 --- a/app/Http/Requests/CooperationCompletionRequest.php +++ b/app/Http/Requests/CooperationCompletionRequest.php @@ -25,6 +25,8 @@ public function rules(): array return [ 'payment_request_letter' => ['required', 'file', 'mimes:pdf', 'max:2048'], 'invoice' => ['required', 'file', 'mimes:pdf', 'max:2048'], + 'bank_reference' => ['required', 'file', 'mimes:pdf', 'max:2048'], + 'electronic_tax_invoice' => ['required', 'file', 'mimes:pdf', 'max:2048'], 'other_document' => ['nullable', 'file', 'mimes:pdf', 'max:2048'], 'description' => ['nullable'], ]; @@ -43,6 +45,16 @@ public function messages(): array 'invoice.mimes' => 'Invoice/Tagihan harus berformat PDF.', 'invoice.max' => 'Ukuran Invoice/Tagihan tidak boleh lebih dari 2MB.', + 'bank_reference.required' => 'Referensi Bank wajib diunggah.', + 'bank_reference.file' => 'Referensi Bank harus berupa file yang valid.', + 'bank_reference.mimes' => 'Referensi Bank harus berformat PDF.', + 'bank_reference.max' => 'Ukuran Referensi Bank tidak boleh lebih dari 2MB.', + + 'electronic_tax_invoice.required' => 'E-Faktur wajib diunggah.', + 'electronic_tax_invoice.file' => 'E-Faktur harus berupa file yang valid.', + 'electronic_tax_invoice.mimes' => 'E-Faktur harus berformat PDF.', + 'electronic_tax_invoice.max' => 'Ukuran E-Faktur tidak boleh lebih dari 2MB.', + 'other_document.required' => 'Dokumen lainnya wajib diunggah.', 'other_document.file' => 'Dokumen lainnya harus berupa file yang valid.', 'other_document.mimes' => 'Dokumen lainnya harus berformat PDF.', diff --git a/app/Http/Requests/UserRequest.php b/app/Http/Requests/UserRequest.php index 821417c..548cb3b 100644 --- a/app/Http/Requests/UserRequest.php +++ b/app/Http/Requests/UserRequest.php @@ -31,13 +31,13 @@ public function rules(): array ]; if($this->isMethod('post')){ - $roles['email'] = ['required', 'email', 'max:100', 'unique:users,email']; + $rules['email'] = ['required', 'email', 'max:100', 'unique:users,email']; $rules['password'] = ['required', 'confirmed', Password::min(8) ->mixedCase() ->numbers() ->symbols()]; }else if($this->isMethod('put')){ - $roles['email'] = ['required', 'email', 'max:100']; + $rules['email'] = ['required', 'email', 'max:100']; $rules['password'] = ['nullable', 'confirmed', Password::min(8) ->mixedCase() ->numbers() diff --git a/app/Models/CooperationCompletion.php b/app/Models/CooperationCompletion.php index 00534d1..357f8d6 100644 --- a/app/Models/CooperationCompletion.php +++ b/app/Models/CooperationCompletion.php @@ -11,6 +11,8 @@ class CooperationCompletion extends Model protected $fillable = [ 'payment_request_letter', 'invoice', + 'bank_reference', + 'electronic_tax_invoice', 'other_document', 'description', 'status', diff --git a/database/migrations/2025_03_17_072048_create_cooperation_completions_table.php b/database/migrations/2025_03_17_072048_create_cooperation_completions_table.php index cdfb28f..f759911 100644 --- a/database/migrations/2025_03_17_072048_create_cooperation_completions_table.php +++ b/database/migrations/2025_03_17_072048_create_cooperation_completions_table.php @@ -15,6 +15,8 @@ public function up(): void $table->id(); $table->string('payment_request_letter'); $table->string('invoice'); + $table->string('bank_reference')->nullable(); + $table->string('electronic_tax_invoice')->nullable(); $table->string('other_document')->nullable(); $table->text('description')->nullable(); $table->enum('status', ['0', '1', '2', '3'])->default('0'); diff --git a/resources/views/dashboard/cooperation-completions/index.blade.php b/resources/views/dashboard/cooperation-completions/index.blade.php new file mode 100644 index 0000000..8379fe6 --- /dev/null +++ b/resources/views/dashboard/cooperation-completions/index.blade.php @@ -0,0 +1,163 @@ +@include('partials.dashboard.head') +@include('partials.dashboard.sidebar', ['page' => 'cooperation-completions']) +@include('partials.dashboard.header') + +
+
+
+
+
+
+
+

{{$title}}

+
+ @if (is_role(['1'])) +
+
+ +
+ +
+
+
+ @endif +
+
+
+
+
+
+ + + + + + + + {{-- + --}} + + + + +
NoKerjasamaPerusahanMediaTanggal Mulai PengajuanTanggal Akhir PengajuanStatus
+
+
+
+
+ + +
+
+
+
+ +@include('partials.dashboard.footer' ,['datatable' => 'cooperation_completion']) diff --git a/resources/views/dashboard/cooperation-completions/index/process.blade.php b/resources/views/dashboard/cooperation-completions/index/process.blade.php new file mode 100644 index 0000000..51eae0b --- /dev/null +++ b/resources/views/dashboard/cooperation-completions/index/process.blade.php @@ -0,0 +1,278 @@ +@include('partials.dashboard.head') +@include('partials.dashboard.sidebar', ['page' => 'cooperations']) +@include('partials.dashboard.header') + +
+
+
+
+
+
+
+
+ +
+
+ {{--
+
Personal Information
+

Basic info, like your name and address, that you use on Nio Platform.

+
--}} +
+
+
+ Nama Kegiatan + {{$cooperationCompletion->order->cooperation->name}} +
+
+
+
+ Media + {{$cooperationCompletion->media->name}} +
+
+
+
+ Diunggah Pada + {{idn_date($cooperationCompletion->created_at, 'l, d F Y')}} +
+
+
+
+ Status + + @if ($cooperationCompletion->status === '0') + Menunggu + @elseif($cooperationCompletion->status === '1') + Diterima + @elseif($cooperationCompletion->status === '2') + Ditolak + @else + Tidak Diketahui + @endif + +
+
+
+
+ {{--
--}} +
+
+ Deskripsi +
+
+
+
+ {!!$cooperationCompletion->description!!} +
+
+
+
+
+
+ +
Surat Permohonan Pembayaran
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->payment_request_letter)) + + @else + - + @endif +
+
+
+
+
+
+
+ +
Invoice/Tagihan
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->invoice)) + + @else + - + @endif +
+
+
+
+
+
+
+ +
Referensi Bank
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->bank_reference)) + + @else + - + @endif +
+
+
+
+
+
+
+ +
E-Faktur
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->electronic_tax_invoice)) + + @else + - + @endif +
+
+
+
+
+
+
+ +
Dokumen Lainnya
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->other_document)) + + @else + Tidak ada + @endif +
+
+
+
+
+
+
+ @if ($cooperationCompletion->status !== '2') +
+ + @endif +
+
+
+
+ @if ($cooperationCompletion->status === '2') +
+ +
+ {{-- {{dd($mediaCooperationPivot->status != '0')}} --}} +
+ @csrf +
+ +
+
+
+ {!!$cooperationCompletion->rejection_reason!!} +
+
+
+
+
+
+ Kembali +
+
+
+
+ @endif + + +
+
+
+
+
+ +@include('partials.dashboard.footer', ['rich_editor' => false]) diff --git a/resources/views/dashboard/cooperation-completions/index/show.blade.php b/resources/views/dashboard/cooperation-completions/index/show.blade.php new file mode 100644 index 0000000..4ba12c6 --- /dev/null +++ b/resources/views/dashboard/cooperation-completions/index/show.blade.php @@ -0,0 +1,270 @@ +@include('partials.dashboard.head') +@include('partials.dashboard.sidebar', ['page' => 'cooperations']) +@include('partials.dashboard.header') + +
+
+
+
+
+
+
+
+ +
+
+ {{--
+
Personal Information
+

Basic info, like your name and address, that you use on Nio Platform.

+
--}} +
+
+
+ Nama Kegiatan + {{$cooperationCompletion->order->cooperation->name}} +
+
+
+
+ Media + {{$cooperationCompletion->media->name}} +
+
+
+
+ Diunggah Pada + {{idn_date($cooperationCompletion->created_at, 'l, d F Y')}} +
+
+
+
+ Status + + @if ($cooperationCompletion->status === '0') + Menunggu + @elseif($cooperationCompletion->status === '1') + Diterima + @elseif($cooperationCompletion->status === '2') + Ditolak + @else + Tidak Diketahui + @endif + +
+
+
+
+ {{--
--}} +
+
+ Deskripsi +
+
+
+
+ {!!$cooperationCompletion->description!!} +
+
+
+
+
+
+ +
Surat Permohonan Pembayaran
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->payment_request_letter)) + + @else + - + @endif +
+
+
+
+
+
+
+ +
Invoice/Tagihan
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->invoice)) + + @else + - + @endif +
+
+
+
+
+
+
+ +
Referensi Bank
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->bank_reference)) + + @else + - + @endif +
+
+
+
+
+
+
+ +
E-Faktur
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->electronic_tax_invoice)) + + @else + - + @endif +
+
+
+
+
+
+
+ +
Dokumen Lainnya
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->other_document)) + + @else + Tidak ada + @endif +
+
+
+
+
+
+
+ @if ($cooperationCompletion->status !== '2') +
+
+ Kembali +
+ @endif +
+
+
+
+ @if ($cooperationCompletion->status === '2') +
+ +
+ {{-- {{dd($mediaCooperationPivot->status != '0')}} --}} +
+ @csrf +
+ +
+
+
+ {!!$cooperationCompletion->rejection_reason!!} +
+
+
+
+
+
+ Kembali +
+
+
+
+ @endif + + +
+
+
+
+
+ +@include('partials.dashboard.footer', ['rich_editor' => false]) diff --git a/resources/views/dashboard/cooperation-completions/show.blade.php b/resources/views/dashboard/cooperation-completions/show.blade.php index 7c530fc..fe917a7 100644 --- a/resources/views/dashboard/cooperation-completions/show.blade.php +++ b/resources/views/dashboard/cooperation-completions/show.blade.php @@ -120,6 +120,54 @@ +
+ +
Referensi Bank
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->bank_reference)) + + @else + - + @endif +
+
+
+
+
+
+
+ +
E-Faktur
+ +
+
+
+
+
+
+ @if (filled($cooperationCompletion->electronic_tax_invoice)) + + @else + - + @endif +
+
+
+
+
+
Dokumen Lainnya
@@ -130,10 +178,10 @@
- @if (filled($cooperationCompletion->invoice)) - @else Tidak ada diff --git a/resources/views/dashboard/media-cooperations/processes/completions/index-media.blade.php b/resources/views/dashboard/media-cooperations/processes/completions/index-media.blade.php index 511c55e..aacd306 100644 --- a/resources/views/dashboard/media-cooperations/processes/completions/index-media.blade.php +++ b/resources/views/dashboard/media-cooperations/processes/completions/index-media.blade.php @@ -46,6 +46,28 @@ @enderror
+
+
+ +
+ +
+ @error('bank_reference') + {{$message}} + @enderror +
+
+
+
+ +
+ +
+ @error('electronic_tax_invoice') + {{$message}} + @enderror +
+
@@ -106,6 +128,32 @@
+
+
+
+ E-Faktur + + @if ($cooperationCompletion->electronic_tax_invoice) + Lihat + Unduh + @else + - + @endif + +
+
Dokumen Lainnya diff --git a/resources/views/partials/app/datatable.blade.php b/resources/views/partials/app/datatable.blade.php index ffae7f8..4edcac2 100644 --- a/resources/views/partials/app/datatable.blade.php +++ b/resources/views/partials/app/datatable.blade.php @@ -981,6 +981,35 @@ @endif +@if ($datatable === 'cooperation_completion') + +@endif + @if ($datatable === 'cooperation_archive')