mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
c3f153fe4b
Update Booking Logic Class Delete Booking Logic Class
31 lines
869 B
PHP
31 lines
869 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class BookingResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @return array
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'company_id' => $this->company_id,
|
|
'transferable_bank_id' => $this->transferable_bank_id,
|
|
'marking' => $this->marking,
|
|
'reference' => $this->reference,
|
|
'fix_amount' => $this->fix_amount,
|
|
'fix_currency_id' => $this->fix_currency_id,
|
|
'convertible_currency_id' => $this->convertible_currency_id,
|
|
'conversion_currency_id' => $this->conversion_currency_id,
|
|
'status' => $this->status
|
|
];
|
|
}
|
|
}
|