add controllers, servoices
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources\ExtraCharges;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class ExtraChargeInvoiceOptionResource extends JsonResource
|
||||
{
|
||||
public function toArray($request): array
|
||||
{
|
||||
return [
|
||||
'id' => $this['id'] ?? null,
|
||||
'invoice_number' => $this['invoice_number'] ?? '',
|
||||
'status' => $this['status'] ?? '',
|
||||
'balance' => $this['balance'] ?? 0,
|
||||
'issue_date' => $this['issue_date'] ?? null,
|
||||
'text' => $this['text'] ?? '',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user