File "NotDistributedPaymentResource-20260128104727.php"
Full Path: /var/www/html/back/app/Http/Resources/NotDistributedPaymentResource-20260128104727.php
File size: 759 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class NotDistributedPaymentResource extends JsonResource
{
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'name' => $this->payment->name,
'payment_id' => $this->payment_id,
'amount' => $this->amount,
'cashbox' => $this->cashbox ?? 0,
'commission' => $this->comission ?? 0,
'article_id' => $this->article_id,
'project_id' => $this->project_id,
'payment_date' => $this->payment->payment_date ?? null,
'payment_type' => $this->payment->payment_type ?? null,
];
}
}