Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/Models/HonorKegiatan.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Support\Carbon;

class HonorKegiatan extends Model
{
Expand Down
1 change: 0 additions & 1 deletion app/Models/KontrakMitra.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@ protected static function booted(): void
$daftarKontrakMitraIds = DaftarKontrakMitra::where('kontrak_mitra_id', $kontrak->id)->pluck('id');
DaftarKontrakMitra::destroy($daftarKontrakMitraIds);
});

}
}
1 change: 0 additions & 1 deletion app/Nova/Actions/Download.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public function exceptionOnEmpty($column, $msg = 'Error')
return $this;
}


public function withTanggal()
{
$this->withTanggal = true;
Expand Down
5 changes: 0 additions & 5 deletions app/Nova/Actions/GenerateBastMitra.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

namespace App\Nova\Actions;

use App\Helpers\Helper;
use App\Models\DaftarKontrakMitra;
use App\Models\JenisKontrak;
use App\Models\KontrakMitra;
use App\Models\NaskahDefault;
use App\Models\NaskahKeluar;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Support\Collection;
Expand Down
7 changes: 1 addition & 6 deletions app/Nova/KontrakMitra.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@

use App\Helpers\Helper;
use App\Helpers\Policy;
use App\Models\KodeArsip;
use App\Models\KontrakMitra as ModelsKontrakMitra;
use App\Models\NaskahDefault;
use App\Nova\Actions\GenerateKontrakMitra;
use App\Nova\Filters\StatusFilter;
use App\Nova\Metrics\MetricPartition;
use App\Nova\Metrics\MetricValue;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Laravel\Nova\Fields\BelongsTo;
use Laravel\Nova\Fields\Date;
use Laravel\Nova\Fields\FormData;
use Laravel\Nova\Fields\HasMany;
use Laravel\Nova\Fields\Select;
use Laravel\Nova\Fields\Status;
Expand Down Expand Up @@ -96,7 +92,7 @@ public function fields(NovaRequest $request)
BelongsTo::make('Jenis Kegiatan', 'jenisKontrak', JenisKontrak::class)
->filterable()
->sortable()
->exceptOnForms(),
->exceptOnForms(),
Status::make('Status', 'status')
->loadingWhen(['dibuat', 'diubah'])
->failedWhen(['outdated'])
Expand Down Expand Up @@ -186,7 +182,6 @@ public function actions(NovaRequest $request)
->showOnDetail()
->confirmButtonText('Generate')
->exceptOnIndex();

}

return $actions;
Expand Down
1 change: 0 additions & 1 deletion app/Policies/MitraPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public function update(): bool
->allowedFor('admin')
->get();
});

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public function down(): void
$table->dropColumn('bast_kode_arsip_id');
});
}
};
};