Skip to content

Commit

Permalink
develop #4
Browse files Browse the repository at this point in the history
  • Loading branch information
mycodingan committed Feb 19, 2024
1 parent 99d67a6 commit 668ea9f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions app/Http/Controllers/AbsenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ public function show(Absen $absen)
return view('absen.Index', compact('absen', 'daysInMonth'));
}

public function update(Request $request, Absen $absen)
public function update(Request $request, Absen $absen)
{
$request->validate([
'Nama_Karyawan' => 'required|array',
'cabang' => 'required|array',
'posisi_jabatan' => 'required|array',
// 'Nama_Karyawan' => 'required|array',
// 'cabang' => 'required|array',
// 'posisi_jabatan' => 'required|array',
'hari' => 'required|array',
]);

Expand Down
13 changes: 6 additions & 7 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,26 @@

namespace App\Providers;

use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
public function register(): void
{
//
}

/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
public function boot(): void
{
//
Paginator::useBootstrap(); // For Bootstrap 5
// Paginator::useBootstrapFour(); // For Bootstrap 4
// Paginator::useBootstrapThree(); // For Bootstrap 3
}
}
9 changes: 5 additions & 4 deletions resources/views/absen/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@
<tbody>
@foreach ($absen as $data)
<tr>
<td contenteditable="true" class="editable_input" data-absen-id="{{ $data->id }}">{{ $data->No_absen }}</td>
<td contenteditable="true" class="editable_input" data-absen-id="{{ $data->id }}">{{ $data->Nama_Karyawan }}</td>
<td contenteditable="true" class="editable_input" data-absen-id="{{ $data->id }}">{{ $data->cabang }}</td>
<td contenteditable="true" class="editable_input" data-absen-id="{{ $data->id }}">{{ $data->posisi_jabatan }}</td>
<td contenteditable="true" class="editable_input" data-absen-id="{{ $data->absen }}">{{ $data->No_absen }}</td>
<td contenteditable="true" class="editable_input" data-absen-id="{{ $data->absen }}">{{ $data->Nama_Karyawan }}</td>
<td contenteditable="true" class="editable_input" data-absen-id="{{ $data->absen }}">{{ $data->cabang }}</td>
<td contenteditable="true" class="editable_input" data-absen-id="{{ $data->absen }}">{{ $data->posisi_jabatan }}</td>
@php
$total_shift_1 = null;
$total_shift_2 = null;
Expand Down Expand Up @@ -272,6 +272,7 @@
</div>
</div>
</div>
{{ $absen->links() }}
</div>
</div>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
Expand Down

0 comments on commit 668ea9f

Please sign in to comment.