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/KerangkaAcuan.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public function anggaranKerangkaAcuan(): HasMany
return $this->hasMany(AnggaranKerangkaAcuan::class);
}


/**
* The "booted" method of the model.
*/
Expand Down
1 change: 0 additions & 1 deletion app/Models/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ public static function cacheEntities(): array
}),
];
}

}
1 change: 0 additions & 1 deletion app/Nova/Actions/ImportKodeArsip.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use App\Helpers\Helper;
use App\Imports\KodeArsipsImport;
use App\Models\KodeArsip;
use App\Models\Template;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Support\Collection;
Expand Down
1 change: 0 additions & 1 deletion app/Nova/Actions/ImportMitra.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use App\Helpers\Helper;
use App\Imports\MitrasImport;
use App\Models\Mitra;
use App\Models\Template;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Support\Collection;
Expand Down
6 changes: 3 additions & 3 deletions app/Nova/AnggaranKerangkaAcuan.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ public static function label()
*/
public function fields(NovaRequest $request)
{
return [
return [
Select::make('MAK', 'mak')
->rules('required')
->searchable()
->filterable()
->filterable()
->dependsOn('tanggal', function (Select $field, NovaRequest $request, FormData $formData) {
$field->options(Helper::setOptionsMataAnggaran(Helper::getYearFromDate(KerangkaAcuan::find($formData->kerangkaAcuan)->tanggal)));
}),
Expand All @@ -63,7 +63,7 @@ public function fields(NovaRequest $request)
->rules('required')
->step(1)
->default(0),

BelongsTo::make('Kerangka Acuan Kerja', 'kerangkaAcuan', KerangkaAcuan::class)
->rules('required')
->searchable()
Expand Down
2 changes: 1 addition & 1 deletion app/Nova/DataPegawai.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static function label()
{
return 'Data Pegawai';
}

public static $with = ['user', 'unitKerja'];
public static $displayInNavigation = false;
/**
Expand Down
1 change: 0 additions & 1 deletion app/Nova/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Nova;

use Illuminate\Http\Request;
use Laravel\Nova\Fields\BelongsTo;
use Laravel\Nova\Fields\File;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Http\Requests\NovaRequest;
Expand Down
8 changes: 4 additions & 4 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public function run(): void
);
DB::unprepared(
file_get_contents(database_path().'/dump_sql/templates.sql')
);
);
DB::unprepared(
file_get_contents(database_path().'/dump_sql/unit_kerjas.sql')
);
}
}
);
}
}