diff --git a/app/Http/Controllers/Api/Admin/ApprovalApiController.php b/app/Http/Controllers/Api/Admin/ApprovalApiController.php index b55c369f..06713e75 100644 --- a/app/Http/Controllers/Api/Admin/ApprovalApiController.php +++ b/app/Http/Controllers/Api/Admin/ApprovalApiController.php @@ -95,6 +95,7 @@ public function store(Request $request): JsonResponse 'form_id' => 'required|exists:approval_forms,id', 'title' => 'required|string|max:200', 'body' => 'nullable|string', + 'content' => 'nullable|array', 'is_urgent' => 'boolean', 'steps' => 'nullable|array', 'steps.*.user_id' => 'required_with:steps|exists:users,id', @@ -118,6 +119,7 @@ public function update(Request $request, int $id): JsonResponse $request->validate([ 'title' => 'sometimes|string|max:200', 'body' => 'nullable|string', + 'content' => 'nullable|array', 'is_urgent' => 'boolean', 'steps' => 'nullable|array', 'steps.*.user_id' => 'required_with:steps|exists:users,id', diff --git a/resources/views/approvals/create.blade.php b/resources/views/approvals/create.blade.php index a5564b6c..a308b058 100644 --- a/resources/views/approvals/create.blade.php +++ b/resources/views/approvals/create.blade.php @@ -65,8 +65,8 @@ class="px-3 py-1.5 bg-blue-50 text-blue-600 hover:bg-blue-100 rounded-lg text-xs - {{-- 본문 --}} -
| 년/월/일 | +내용 | +금액 | +업체명 | +지급은행 | +계좌번호 | +예금주 | +비고 | +
|---|---|---|---|---|---|---|---|
| {{ $item['date'] ?? '' }} | +{{ $item['description'] ?? '' }} | +{{ number_format($item['amount'] ?? 0) }} | +{{ $item['vendor'] ?? '' }} | +{{ $item['bank'] ?? '' }} | +{{ $item['account_no'] ?? '' }} | +{{ $item['depositor'] ?? '' }} | +{{ $item['remark'] ?? '' }} | +
| 합계 | +{{ number_format($content['total_amount'] ?? 0) }} | ++ | |||||