- Implemented StokOpnameEdit component for editing stock opname entries. - Created StokOpnameIndex component for listing and managing stock opnames. - Added StokOpnameCardRow and StokOpnameItemSubRow components for displaying stock opname details. - Introduced routes for stok opname CRUD operations and actions (submit, verify, reject, cancel). - Integrated UI components for better user interaction and data presentation.
28 lines
543 B
PHP
28 lines
543 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin\Manage;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class StokOpnameVerifyRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return $this->user()->can('stok_opnames.verify');
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'verification_notes' => ['nullable', 'string', 'max:100'],
|
|
];
|
|
}
|
|
|
|
public function attributes(): array
|
|
{
|
|
return [
|
|
'verification_notes' => 'Catatan Verifikasi',
|
|
];
|
|
}
|
|
}
|