Record explicit workshop acceptance and preserve subsequent synthetic work without accepting receivables. Keep 080000/070000 unapplied, real workshop grants pending and operational issuance blocks intact. Exclude local credentials and real-data preservation reports.
14 lines
978 B
PHP
14 lines
978 B
PHP
<?php
|
|
namespace App\Modules\Services\Http;
|
|
use App\Http\Controllers\Controller;
|
|
use App\Modules\Services\ServiceReceivables;
|
|
use Illuminate\Http\Request;
|
|
final class ServiceReceivablesController extends Controller
|
|
{
|
|
private function response(array $d) { return response()->json($d)->header('Cache-Control','no-store, private'); }
|
|
public function index(Request $r,ServiceReceivables $s) { return $this->response($s->listing($r->user()->id)); }
|
|
public function propose(Request $r,ServiceReceivables $s) { return $this->response($s->propose($r->user()->id,$r->all(),(string)$r->header('Idempotency-Key'))); }
|
|
public function decide(Request $r,int $id,ServiceReceivables $s) { return $this->response($s->decide($id,$r->user()->id,$r->all(),(string)$r->header('Idempotency-Key'))); }
|
|
public function allocate(Request $r,int $id,ServiceReceivables $s) { return $this->response($s->allocate($id,$r->user()->id,$r->all(),(string)$r->header('Idempotency-Key'))); }
|
|
}
|