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
8 changes: 4 additions & 4 deletions app/Helpers/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,21 +448,21 @@ public static function formatDaftarNama($nama)
{
$daftar = [];
$index = 1;

for ($i = 0; $i < count($nama); $i += 2) {
$nama1 = Helper::getPegawaiByUserId($nama[$i]['peserta_user_id'])->name;
$unit_kerja1 ='BPS Kabupaten Hulu Sungai Tengah';
$unit_kerja1 = 'BPS Kabupaten Hulu Sungai Tengah';
$nama2 = isset($nama[$i + 1]) ? Helper::getPegawaiByUserId($nama[$i + 1]['peserta_user_id'])->name : '';
$unit_kerja2 = isset($nama[$i + 1]) ? 'BPS Kabupaten Hulu Sungai Tengah' : '';

$daftar[] = [
'no' => $index,
'nama1' => $nama1,
'unit_kerja1' => $unit_kerja1,
'nama2' => $nama2,
'unit_kerja2' => $unit_kerja2,
];

$index++;
}

Expand Down
1 change: 0 additions & 1 deletion app/Models/DokumentasiLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ protected static function booted(): void
static::creating(function (DokumentasiLink $link) {
$link->user_id = Auth::user()->id;
});

}
}
2 changes: 0 additions & 2 deletions app/Models/RapatInternal.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function naskahKeluar(): BelongsTo
protected static function booted(): void
{
static::creating(function (RapatInternal $rapat) {

$default_naskah = NaskahDefault::cache()->get('all')
->where('jenis', 'undangan')
->first();
Expand All @@ -56,7 +55,6 @@ protected static function booted(): void
$naskahkeluar->generate = 'A';
$naskahkeluar->save();
$rapat->naskah_keluar_id = $naskahkeluar->id;

});
static::updating(function (RapatInternal $rapat) {
if ($rapat->isDirty('tanggal_rapat')) {
Expand Down
1 change: 0 additions & 1 deletion app/Nova/DokumentasiLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Nova;

use Laravel\Nova\Fields\Hidden;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\URL;
use Laravel\Nova\Http\Requests\NovaRequest;
Expand Down
4 changes: 2 additions & 2 deletions app/Nova/IzinKeluar.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ public function fields(NovaRequest $request)
->prunable()
->image()
->columns(3)
->multiple()
->multiple()
->dependsOn('kegiatan', function (Filepond $field, NovaRequest $request, FormData $formData) {
$field->path(session('year').'/'.Str::slug($formData->kegiatan));
})
})
->hideWhenCreating(),
]),

Expand Down
1 change: 0 additions & 1 deletion app/Nova/RewardPegawai.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Illuminate\Support\Facades\Storage;
use Illuminate\Validation\Rule;
use Laravel\Nova\Fields\BelongsTo;
use Laravel\Nova\Fields\File;
use Laravel\Nova\Fields\FormData;
use Laravel\Nova\Fields\HasMany;
use Laravel\Nova\Fields\Select;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public function up(): void
$table->date('tanggal_rapat')->nullable();
$table->time('mulai', precision: 0)->nullable();
$table->string('tempat', '80')->nullable();
$table->text('agenda')->nullable();
$table->text('peserta')->nullable();
$table->text('agenda')->nullable();
$table->text('peserta')->nullable();
$table->string('draft_notula')->nullable();
$table->string('signed_notula')->nullable();
$table->string('signed_daftar_hadir')->nullable();
Expand Down