generated from liutk/owl-admin-base
27 lines
661 B
PHP
27 lines
661 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class StoreMasterCommissionResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'month' => $this->month,
|
|
'commission' => $this->commission,
|
|
'daily_expenses' => $this->daily_expenses,
|
|
'employee_expenses' => $this->employee_expenses,
|
|
'other_expenses' => $this->other_expenses,
|
|
];
|
|
}
|
|
}
|