diff --git a/composer.json b/composer.json
index df51847..ea137cc 100644
--- a/composer.json
+++ b/composer.json
@@ -19,6 +19,7 @@
"phpoffice/phpspreadsheet": "^3.5",
"singlequote/laravel-webdav": "^1.1",
"spatie/laravel-html": "^3.11",
+ "spatie/laravel-image-optimizer": "^1.8",
"spatie/laravel-menu": "^4.2",
"spatie/laravel-permission": "^6.10",
"yajra/laravel-datatables-oracle": "11.0"
diff --git a/composer.lock b/composer.lock
index 18f4e50..d2b7929 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "fc2177036b736100113a527777c8cbc8",
+ "content-hash": "21b0b8595f584053b4b3e6a9267a2a47",
"packages": [
{
"name": "barryvdh/laravel-dompdf",
@@ -4856,6 +4856,61 @@
},
"time": "2024-06-07T12:41:19+00:00"
},
+ {
+ "name": "spatie/image-optimizer",
+ "version": "1.8.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/spatie/image-optimizer.git",
+ "reference": "4fd22035e81d98fffced65a8c20d9ec4daa9671c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/spatie/image-optimizer/zipball/4fd22035e81d98fffced65a8c20d9ec4daa9671c",
+ "reference": "4fd22035e81d98fffced65a8c20d9ec4daa9671c",
+ "shasum": ""
+ },
+ "require": {
+ "ext-fileinfo": "*",
+ "php": "^7.3|^8.0",
+ "psr/log": "^1.0 | ^2.0 | ^3.0",
+ "symfony/process": "^4.2|^5.0|^6.0|^7.0"
+ },
+ "require-dev": {
+ "pestphp/pest": "^1.21",
+ "phpunit/phpunit": "^8.5.21|^9.4.4",
+ "symfony/var-dumper": "^4.2|^5.0|^6.0|^7.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Spatie\\ImageOptimizer\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Freek Van der Herten",
+ "email": "freek@spatie.be",
+ "homepage": "https://spatie.be",
+ "role": "Developer"
+ }
+ ],
+ "description": "Easily optimize images using PHP",
+ "homepage": "https://github.com/spatie/image-optimizer",
+ "keywords": [
+ "image-optimizer",
+ "spatie"
+ ],
+ "support": {
+ "issues": "https://github.com/spatie/image-optimizer/issues",
+ "source": "https://github.com/spatie/image-optimizer/tree/1.8.0"
+ },
+ "time": "2024-11-04T08:24:54+00:00"
+ },
{
"name": "spatie/laravel-html",
"version": "3.11.1",
@@ -4934,6 +4989,74 @@
],
"time": "2024-10-18T14:37:21+00:00"
},
+ {
+ "name": "spatie/laravel-image-optimizer",
+ "version": "1.8.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/spatie/laravel-image-optimizer.git",
+ "reference": "024752cba691fee3cd1800000b6aa3da3b8b2474"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/spatie/laravel-image-optimizer/zipball/024752cba691fee3cd1800000b6aa3da3b8b2474",
+ "reference": "024752cba691fee3cd1800000b6aa3da3b8b2474",
+ "shasum": ""
+ },
+ "require": {
+ "laravel/framework": "^8.0|^9.0|^10.0|^11.0",
+ "php": "^8.0",
+ "spatie/image-optimizer": "^1.2.0"
+ },
+ "require-dev": {
+ "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
+ "phpunit/phpunit": "^9.4|^10.5"
+ },
+ "type": "library",
+ "extra": {
+ "laravel": {
+ "aliases": {
+ "ImageOptimizer": "Spatie\\LaravelImageOptimizer\\Facades\\ImageOptimizer"
+ },
+ "providers": [
+ "Spatie\\LaravelImageOptimizer\\ImageOptimizerServiceProvider"
+ ]
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Spatie\\LaravelImageOptimizer\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Freek Van der Herten",
+ "email": "freek@spatie.be",
+ "homepage": "https://spatie.be",
+ "role": "Developer"
+ }
+ ],
+ "description": "Optimize images in your Laravel app",
+ "homepage": "https://github.com/spatie/laravel-image-optimizer",
+ "keywords": [
+ "laravel-image-optimizer",
+ "spatie"
+ ],
+ "support": {
+ "source": "https://github.com/spatie/laravel-image-optimizer/tree/1.8.0"
+ },
+ "funding": [
+ {
+ "url": "https://spatie.be/open-source/support-us",
+ "type": "custom"
+ }
+ ],
+ "time": "2024-02-29T10:55:08+00:00"
+ },
{
"name": "spatie/laravel-menu",
"version": "4.2.0",
diff --git a/resources/views/backend/pages/forms/entertainment/index.blade.php b/resources/views/backend/pages/forms/entertainment/index.blade.php
index 27ee6aa..3382e67 100644
--- a/resources/views/backend/pages/forms/entertainment/index.blade.php
+++ b/resources/views/backend/pages/forms/entertainment/index.blade.php
@@ -77,161 +77,163 @@
@include('backend.layouts.partials.messages')
-
-
-
- | # |
- Nama |
- Tanggal |
- Jenis |
- Keterangan |
- Total |
- Nama Penerima |
- Bukti 1 |
- Bukti 2 |
- Bukti 3 |
- Account Number |
- Status |
- @if (auth()->user()->can('approval.approve'))
- Approval |
- @endif
- @if (auth()->user()->can('final_approval.approve'))
- Final Approval |
- @endif
- Aksi |
-
-
-
- @php
- use App\Helpers\NextCloudHelper;
- @endphp
- @foreach ($forms as $item)
+
+
+
- | {{ $loop->iteration }} |
- {{ $item->user->name }} |
- {{ \Carbon\Carbon::parse($item->tanggal)->locale('id')->isoFormat('D MMMM Y') }} |
- {{ $item->jenis }} |
- {{ $item->keterangan }} |
- {{ number_format($item->total, 0, ',', '.') }} |
- {{ $item->name }} |
-
- @if ($item->bukti1)
-
- Download
-
- @else
- -
- @endif
- |
-
- @if ($item->bukti2)
-
- Download
-
- @else
- -
- @endif
- |
-
- @if ($item->bukti3)
-
- Download
-
- @else
- -
- @endif
- |
- {{ $item->account_number }} |
-
- @if ($item->status == 'On Progress')
- {{ $item->status }}
- @elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
- {{ $item->status }}
- @else
- {{ $item->status }}
- @endif
- |
+ # |
+ Nama |
+ Tanggal |
+ Jenis |
+ Keterangan |
+ Total |
+ Nama Penerima |
+ Bukti 1 |
+ Bukti 2 |
+ Bukti 3 |
+ Account Number |
+ Status |
@if (auth()->user()->can('approval.approve'))
+ Approval |
+ @endif
+ @if (auth()->user()->can('final_approval.approve'))
+ Final Approval |
+ @endif
+ Aksi |
+
+
+
+ @php
+ use App\Helpers\NextCloudHelper;
+ @endphp
+ @foreach ($forms as $item)
+
+ | {{ $loop->iteration }} |
+ {{ $item->user->name }} |
+ {{ \Carbon\Carbon::parse($item->tanggal)->locale('id')->isoFormat('D MMMM Y') }} |
+ {{ $item->jenis }} |
+ {{ $item->keterangan }} |
+ {{ number_format($item->total, 0, ',', '.') }} |
+ {{ $item->name }} |
- {{-- approve / reject button --}}
- @if ($item->status == 'On Progress')
-
-
-
+ @if ($item->bukti1)
+
+ Download
+
@else
- @if ($item->approved_at)
- {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
- @elseif($item->rejected_at)
- {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }}
- @else
- -
- @endif
+ -
@endif
|
- @endif
- @if(auth()->user()->can('final_approval.approve'))
- {{-- approve / reject button --}}
- @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at)
-
+ @if ($item->bukti2)
+
+ Download
+
@else
- @if ($item->final_approved_at && auth()->user()->can('final_approval.open'))
- |
+
+ @if ($item->bukti3)
+
+ Download
+
+ @else
+ -
+ @endif
+ |
+ {{ $item->account_number }} |
+
+ @if ($item->status == 'On Progress')
+ {{ $item->status }}
+ @elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
+ {{ $item->status }}
+ @else
+ {{ $item->status }}
+ @endif
+ |
+ @if (auth()->user()->can('approval.approve'))
+
+ {{-- approve / reject button --}}
+ @if ($item->status == 'On Progress')
+
+
+
- @elseif ($item->final_approved_at)
- {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
@else
- -
+ @if ($item->approved_at)
+ {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @elseif($item->rejected_at)
+ {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @else
+ -
+ @endif
@endif
+ |
+ @endif
+ @if(auth()->user()->can('final_approval.approve'))
+
+ {{-- approve / reject button --}}
+ @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at)
+
+ @else
+ @if ($item->final_approved_at && auth()->user()->can('final_approval.open'))
+
+ @elseif ($item->final_approved_at)
+ {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @else
+ -
+ @endif
+ @endif
+ |
+ @endif
+
+ @if (auth()->user()->can('forms.entertainment.edit'))
+
+
+
+ @endif
+
+ @if (auth()->user()->can('forms.entertainment.delete'))
+
@endif
|
- @endif
-
- @if (auth()->user()->can('forms.entertainment.edit'))
-
-
-
- @endif
-
- @if (auth()->user()->can('forms.entertainment.delete'))
-
- @endif
- |
-
- @endforeach
-
-
+
+ @endforeach
+
+
+
diff --git a/resources/views/backend/pages/forms/meeting/index.blade.php b/resources/views/backend/pages/forms/meeting/index.blade.php
index 10c46e0..798045a 100644
--- a/resources/views/backend/pages/forms/meeting/index.blade.php
+++ b/resources/views/backend/pages/forms/meeting/index.blade.php
@@ -77,161 +77,163 @@
@include('backend.layouts.partials.messages')
-
-
-
- | # |
- Nama |
- Tanggal |
- Allowance |
- Transport Ankot |
- Hotel |
- Total |
- Bukti 1 |
- Bukti 2 |
- Bukti 3 |
- Account Number |
- Status |
- @if (auth()->user()->can('approval.approve'))
- Approval |
- @endif
- @if (auth()->user()->can('final_approval.approve'))
- Final Approval |
- @endif
- Aksi |
-
-
-
- @php
- use App\Helpers\NextCloudHelper;
- @endphp
- @foreach ($forms as $item)
+
+
+
- | {{ $loop->iteration }} |
- {{ $item->user->name }} |
- {{ \Carbon\Carbon::parse($item->created_at)->locale('id')->isoFormat('D MMMM Y') }} |
- {{ number_format($item->allowance, 0, ',', '.') }} |
- {{ number_format($item->transport_ankot, 0, ',', '.') }} |
- {{ number_format($item->hotel, 0, ',', '.') }} |
- {{ number_format($item->total, 0, ',', '.') }} |
-
- @if ($item->bukti1)
-
- Download
-
- @else
- -
- @endif
- |
-
- @if ($item->bukti2)
-
- Download
-
- @else
- -
- @endif
- |
-
- @if ($item->bukti3)
-
- Download
-
- @else
- -
- @endif
- |
- {{ $item->account_number }} |
-
- @if ($item->status == 'On Progress')
- {{ $item->status }}
- @elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
- {{ $item->status }}
- @else
- {{ $item->status }}
- @endif
- |
+ # |
+ Nama |
+ Tanggal |
+ Allowance |
+ Transport Ankot |
+ Hotel |
+ Total |
+ Bukti 1 |
+ Bukti 2 |
+ Bukti 3 |
+ Account Number |
+ Status |
@if (auth()->user()->can('approval.approve'))
+ Approval |
+ @endif
+ @if (auth()->user()->can('final_approval.approve'))
+ Final Approval |
+ @endif
+ Aksi |
+
+
+
+ @php
+ use App\Helpers\NextCloudHelper;
+ @endphp
+ @foreach ($forms as $item)
+
+ | {{ $loop->iteration }} |
+ {{ $item->user->name }} |
+ {{ \Carbon\Carbon::parse($item->created_at)->locale('id')->isoFormat('D MMMM Y') }} |
+ {{ number_format($item->allowance, 0, ',', '.') }} |
+ {{ number_format($item->transport_ankot, 0, ',', '.') }} |
+ {{ number_format($item->hotel, 0, ',', '.') }} |
+ {{ number_format($item->total, 0, ',', '.') }} |
- {{-- approve / reject button --}}
- @if ($item->status == 'On Progress')
-
-
-
+ @if ($item->bukti1)
+
+ Download
+
@else
- @if ($item->approved_at)
- {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
- @elseif($item->rejected_at)
- {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }}
- @else
- -
- @endif
+ -
@endif
|
- @endif
- @if(auth()->user()->can('final_approval.approve'))
- {{-- approve / reject button --}}
- @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at)
-
+ @if ($item->bukti2)
+
+ Download
+
@else
- @if ($item->final_approved_at && auth()->user()->can('final_approval.open'))
- |
+
+ @if ($item->bukti3)
+
+ Download
+
+ @else
+ -
+ @endif
+ |
+ {{ $item->account_number }} |
+
+ @if ($item->status == 'On Progress')
+ {{ $item->status }}
+ @elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
+ {{ $item->status }}
+ @else
+ {{ $item->status }}
+ @endif
+ |
+ @if (auth()->user()->can('approval.approve'))
+
+ {{-- approve / reject button --}}
+ @if ($item->status == 'On Progress')
+
+
+
- @elseif ($item->final_approved_at)
- {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
@else
- -
+ @if ($item->approved_at)
+ {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @elseif($item->rejected_at)
+ {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @else
+ -
+ @endif
@endif
+ |
+ @endif
+ @if(auth()->user()->can('final_approval.approve'))
+
+ {{-- approve / reject button --}}
+ @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at)
+
+ @else
+ @if ($item->final_approved_at && auth()->user()->can('final_approval.open'))
+
+ @elseif ($item->final_approved_at)
+ {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @else
+ -
+ @endif
+ @endif
+ |
+ @endif
+
+ @if (auth()->user()->can('forms.meeting.edit'))
+
+
+
+ @endif
+
+ @if (auth()->user()->can('forms.meeting.delete'))
+
@endif
|
- @endif
-
- @if (auth()->user()->can('forms.meeting.edit'))
-
-
-
- @endif
-
- @if (auth()->user()->can('forms.meeting.delete'))
-
- @endif
- |
-
- @endforeach
-
-
+
+ @endforeach
+
+
+
diff --git a/resources/views/backend/pages/forms/other/index.blade.php b/resources/views/backend/pages/forms/other/index.blade.php
index 5a61a69..759fe3e 100644
--- a/resources/views/backend/pages/forms/other/index.blade.php
+++ b/resources/views/backend/pages/forms/other/index.blade.php
@@ -77,159 +77,161 @@
@include('backend.layouts.partials.messages')
-
-
-
- | # |
- Nama |
- Tanggal |
- Jenis |
- Keterangan |
- Total |
- Bukti 1 |
- Bukti 2 |
- Bukti 3 |
- Account Number |
- Status |
- @if (auth()->user()->can('approval.approve'))
- Approval |
- @endif
- @if (auth()->user()->can('final_approval.approve'))
- Final Approval |
- @endif
- Aksi |
-
-
-
- @php
- use App\Helpers\NextCloudHelper;
- @endphp
- @foreach ($forms as $item)
+
+
+
- | {{ $loop->iteration }} |
- {{ $item->user->name }} |
- {{ \Carbon\Carbon::parse($item->tanggal)->locale('id')->isoFormat('D MMMM Y') }} |
- {{ $item->kategori->name }} |
- {{ $item->keterangan }} |
- {{ number_format($item->total, 0, ',', '.') }} |
-
- @if ($item->bukti1)
-
- Download
-
- @else
- -
- @endif
- |
-
- @if ($item->bukti2)
-
- Download
-
- @else
- -
- @endif
- |
-
- @if ($item->bukti3)
-
- Download
-
- @else
- -
- @endif
- |
- {{ $item->account_number }} |
-
- @if ($item->status == 'On Progress')
- {{ $item->status }}
- @elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
- {{ $item->status }}
- @else
- {{ $item->status }}
- @endif
- |
+ # |
+ Nama |
+ Tanggal |
+ Jenis |
+ Keterangan |
+ Total |
+ Bukti 1 |
+ Bukti 2 |
+ Bukti 3 |
+ Account Number |
+ Status |
@if (auth()->user()->can('approval.approve'))
+ Approval |
+ @endif
+ @if (auth()->user()->can('final_approval.approve'))
+ Final Approval |
+ @endif
+ Aksi |
+
+
+
+ @php
+ use App\Helpers\NextCloudHelper;
+ @endphp
+ @foreach ($forms as $item)
+
+ | {{ $loop->iteration }} |
+ {{ $item->user->name }} |
+ {{ \Carbon\Carbon::parse($item->tanggal)->locale('id')->isoFormat('D MMMM Y') }} |
+ {{ $item->kategori->name }} |
+ {{ $item->keterangan }} |
+ {{ number_format($item->total, 0, ',', '.') }} |
- {{-- approve / reject button --}}
- @if ($item->status == 'On Progress')
-
-
-
+ @if ($item->bukti1)
+
+ Download
+
@else
- @if ($item->approved_at)
- {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
- @elseif($item->rejected_at)
- {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }}
- @else
- -
- @endif
+ -
@endif
|
- @endif
- @if(auth()->user()->can('final_approval.approve'))
- {{-- approve / reject button --}}
- @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at)
-
+ @if ($item->bukti2)
+
+ Download
+
@else
- @if ($item->final_approved_at && auth()->user()->can('final_approval.open'))
- |
+
+ @if ($item->bukti3)
+
+ Download
+
+ @else
+ -
+ @endif
+ |
+ {{ $item->account_number }} |
+
+ @if ($item->status == 'On Progress')
+ {{ $item->status }}
+ @elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
+ {{ $item->status }}
+ @else
+ {{ $item->status }}
+ @endif
+ |
+ @if (auth()->user()->can('approval.approve'))
+
+ {{-- approve / reject button --}}
+ @if ($item->status == 'On Progress')
+
+
+
- @elseif ($item->final_approved_at)
- {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
@else
- -
+ @if ($item->approved_at)
+ {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @elseif($item->rejected_at)
+ {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @else
+ -
+ @endif
@endif
+ |
+ @endif
+ @if(auth()->user()->can('final_approval.approve'))
+
+ {{-- approve / reject button --}}
+ @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at)
+
+ @else
+ @if ($item->final_approved_at && auth()->user()->can('final_approval.open'))
+
+ @elseif ($item->final_approved_at)
+ {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @else
+ -
+ @endif
+ @endif
+ |
+ @endif
+
+ @if (auth()->user()->can('forms.other.edit'))
+
+
+
+ @endif
+
+ @if (auth()->user()->can('forms.other.delete'))
+
@endif
|
- @endif
-
- @if (auth()->user()->can('forms.other.edit'))
-
-
-
- @endif
-
- @if (auth()->user()->can('forms.other.delete'))
-
- @endif
- |
-
- @endforeach
-
-
+
+ @endforeach
+
+
+
diff --git a/resources/views/backend/pages/forms/upcountry/index.blade.php b/resources/views/backend/pages/forms/upcountry/index.blade.php
index a38b910..b69057e 100644
--- a/resources/views/backend/pages/forms/upcountry/index.blade.php
+++ b/resources/views/backend/pages/forms/upcountry/index.blade.php
@@ -77,161 +77,163 @@
@include('backend.layouts.partials.messages')
-
-
-
- | # |
- Nama |
- Rayon |
- Tanggal |
- Tujuan |
- Jarak |
- Total |
- Bukti 1 |
- Bukti 2 |
- Bukti 3 |
- Account Number |
- Status |
- @if (auth()->user()->can('approval.approve'))
- Approval |
- @endif
- @if (auth()->user()->can('final_approval.approve'))
- Final Approval |
- @endif
- Aksi |
-
-
-
- @php
- use App\Helpers\NextCloudHelper;
- @endphp
- @foreach ($forms as $item)
+
+
+
- | {{ $loop->iteration }} |
- {{ $item->user->name }} |
- {{ $item->rayon->code }} |
- {{ \Carbon\Carbon::parse($item->tanggal)->locale('id')->isoFormat('D MMMM Y') }} |
- {{ $item->tujuan }} |
- {{ $item->jarak }} km |
- {{ number_format($item->total, 0, ',', '.') }} |
-
- @if ($item->bukti1)
-
- Download
-
- @else
- -
- @endif
- |
-
- @if ($item->bukti2)
-
- Download
-
- @else
- -
- @endif
- |
-
- @if ($item->bukti3)
-
- Download
-
- @else
- -
- @endif
- |
- {{ $item->account_number }} |
-
- @if ($item->status == 'On Progress')
- {{ $item->status }}
- @elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
- {{ $item->status }}
- @else
- {{ $item->status }}
- @endif
- |
+ # |
+ Nama |
+ Rayon |
+ Tanggal |
+ Tujuan |
+ Jarak |
+ Total |
+ Bukti 1 |
+ Bukti 2 |
+ Bukti 3 |
+ Account Number |
+ Status |
@if (auth()->user()->can('approval.approve'))
+ Approval |
+ @endif
+ @if (auth()->user()->can('final_approval.approve'))
+ Final Approval |
+ @endif
+ Aksi |
+
+
+
+ @php
+ use App\Helpers\NextCloudHelper;
+ @endphp
+ @foreach ($forms as $item)
+
+ | {{ $loop->iteration }} |
+ {{ $item->user->name }} |
+ {{ $item->rayon->code }} |
+ {{ \Carbon\Carbon::parse($item->tanggal)->locale('id')->isoFormat('D MMMM Y') }} |
+ {{ $item->tujuan }} |
+ {{ $item->jarak }} km |
+ {{ number_format($item->total, 0, ',', '.') }} |
- {{-- approve / reject button --}}
- @if ($item->status == 'On Progress')
-
-
-
+ @if ($item->bukti1)
+
+ Download
+
@else
- @if ($item->approved_at)
- {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
- @elseif($item->rejected_at)
- {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }}
- @else
- -
- @endif
+ -
@endif
|
- @endif
- @if(auth()->user()->can('final_approval.approve'))
- {{-- approve / reject button --}}
- @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at)
-
+ @if ($item->bukti2)
+
+ Download
+
@else
- @if ($item->final_approved_at && auth()->user()->can('final_approval.open'))
- |
+
+ @if ($item->bukti3)
+
+ Download
+
+ @else
+ -
+ @endif
+ |
+ {{ $item->account_number }} |
+
+ @if ($item->status == 'On Progress')
+ {{ $item->status }}
+ @elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
+ {{ $item->status }}
+ @else
+ {{ $item->status }}
+ @endif
+ |
+ @if (auth()->user()->can('approval.approve'))
+
+ {{-- approve / reject button --}}
+ @if ($item->status == 'On Progress')
+
+
+
- @elseif ($item->final_approved_at)
- {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
@else
- -
+ @if ($item->approved_at)
+ {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @elseif($item->rejected_at)
+ {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @else
+ -
+ @endif
@endif
+ |
+ @endif
+ @if(auth()->user()->can('final_approval.approve'))
+
+ {{-- approve / reject button --}}
+ @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at)
+
+ @else
+ @if ($item->final_approved_at && auth()->user()->can('final_approval.open'))
+
+ @elseif ($item->final_approved_at)
+ {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @else
+ -
+ @endif
+ @endif
+ |
+ @endif
+
+ @if (auth()->user()->can('forms.country.edit'))
+
+
+
+ @endif
+
+ @if (auth()->user()->can('forms.country.delete'))
+
@endif
|
- @endif
-
- @if (auth()->user()->can('forms.country.edit'))
-
-
-
- @endif
-
- @if (auth()->user()->can('forms.country.delete'))
-
- @endif
- |
-
- @endforeach
-
-
+
+ @endforeach
+
+
+
diff --git a/resources/views/backend/pages/forms/vehicle/index.blade.php b/resources/views/backend/pages/forms/vehicle/index.blade.php
index 86f2eee..bea8331 100644
--- a/resources/views/backend/pages/forms/vehicle/index.blade.php
+++ b/resources/views/backend/pages/forms/vehicle/index.blade.php
@@ -77,163 +77,165 @@
@include('backend.layouts.partials.messages')
-
-
-
- | # |
- Nama |
- Tanggal |
- Liter |
- Total |
- Jarak |
- Tipe Bensin |
- Nomor Polisi |
- Bukti 1 |
- Bukti 2 |
- Bukti 3 |
- Account Number |
- Status |
- @if (auth()->user()->can('approval.approve'))
- Approval |
- @endif
- @if (auth()->user()->can('final_approval.approve'))
- Final Approval |
- @endif
- Aksi |
-
-
-
- @php
- use App\Helpers\NextCloudHelper;
- @endphp
- @foreach ($forms as $item)
+
+
+
- | {{ $loop->iteration }} |
- {{ $item->user->name }} |
- {{ \Carbon\Carbon::parse($item->tanggal)->locale('id')->isoFormat('dddd, D MMMM Y HH:mm:ss') }} |
- {{ $item->liter }} |
- {{ number_format($item->total, 0, ',', '.') }} |
- {{ $item->jarak }} |
- {{ $item->tipe_bensin }} |
- {{ $item->nopol }} |
-
- @if ($item->bukti1)
-
- Download
-
- @else
- -
- @endif
- |
-
- @if ($item->bukti2)
-
- Download
-
- @else
- -
- @endif
- |
-
- @if ($item->bukti3)
-
- Download
-
- @else
- -
- @endif
- |
- {{ $item->account_number }} |
-
- @if ($item->status == 'On Progress')
- {{ $item->status }}
- @elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
- {{ $item->status }}
- @else
- {{ $item->status }}
- @endif
- |
+ # |
+ Nama |
+ Tanggal |
+ Liter |
+ Total |
+ Jarak |
+ Tipe Bensin |
+ Nomor Polisi |
+ Bukti 1 |
+ Bukti 2 |
+ Bukti 3 |
+ Account Number |
+ Status |
@if (auth()->user()->can('approval.approve'))
+ Approval |
+ @endif
+ @if (auth()->user()->can('final_approval.approve'))
+ Final Approval |
+ @endif
+ Aksi |
+
+
+
+ @php
+ use App\Helpers\NextCloudHelper;
+ @endphp
+ @foreach ($forms as $item)
+
+ | {{ $loop->iteration }} |
+ {{ $item->user->name }} |
+ {{ \Carbon\Carbon::parse($item->tanggal)->locale('id')->isoFormat('dddd, D MMMM Y HH:mm:ss') }} |
+ {{ $item->liter }} |
+ {{ number_format($item->total, 0, ',', '.') }} |
+ {{ $item->jarak }} |
+ {{ $item->tipe_bensin }} |
+ {{ $item->nopol }} |
- {{-- approve / reject button --}}
- @if ($item->status == 'On Progress')
-
-
-
+ @if ($item->bukti1)
+
+ Download
+
@else
- @if ($item->approved_at)
- {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
- @elseif($item->rejected_at)
- {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }}
- @else
- -
- @endif
+ -
@endif
|
- @endif
- @if(auth()->user()->can('final_approval.approve'))
- {{-- approve / reject button --}}
- @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at)
-
+ @if ($item->bukti2)
+
+ Download
+
@else
- @if ($item->final_approved_at && auth()->user()->can('final_approval.open'))
- |
+
+ @if ($item->bukti3)
+
+ Download
+
+ @else
+ -
+ @endif
+ |
+ {{ $item->account_number }} |
+
+ @if ($item->status == 'On Progress')
+ {{ $item->status }}
+ @elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
+ {{ $item->status }}
+ @else
+ {{ $item->status }}
+ @endif
+ |
+ @if (auth()->user()->can('approval.approve'))
+
+ {{-- approve / reject button --}}
+ @if ($item->status == 'On Progress')
+
+
+
- @elseif ($item->final_approved_at)
- {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
@else
- -
+ @if ($item->approved_at)
+ {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @elseif($item->rejected_at)
+ {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @else
+ -
+ @endif
@endif
+ |
+ @endif
+ @if(auth()->user()->can('final_approval.approve'))
+
+ {{-- approve / reject button --}}
+ @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at)
+
+ @else
+ @if ($item->final_approved_at && auth()->user()->can('final_approval.open'))
+
+ @elseif ($item->final_approved_at)
+ {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }}
+ @else
+ -
+ @endif
+ @endif
+ |
+ @endif
+
+ @if (auth()->user()->can('forms.vehicle.edit'))
+
+
+
+ @endif
+
+ @if (auth()->user()->can('forms.vehicle.delete'))
+
@endif
|
- @endif
-
- @if (auth()->user()->can('forms.vehicle.edit'))
-
-
-
- @endif
-
- @if (auth()->user()->can('forms.vehicle.delete'))
-
- @endif
- |
-
- @endforeach
-
-
+
+ @endforeach
+
+
+
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index a0eb504..b43eaf0 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -68,14 +68,16 @@