DashboardClienteResource.php 762 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Http\Resources;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Http\Resources\Json\JsonResource;
  5. class DashboardClienteResource extends JsonResource
  6. {
  7. /**
  8. * Transform the resource into an array.
  9. *
  10. * @return array<string, mixed>
  11. */
  12. public function toArray(Request $request): array
  13. {
  14. return [
  15. 'headerBar' => $this['headerBar'],
  16. 'summaryInfos' => $this['summaryInfos'],
  17. 'pendingSchedules' => $this['pendingSchedules'],
  18. 'nextSchedules' => $this['nextSchedules'],
  19. 'lastDoneSchedules' => $this['lastDoneSchedules'],
  20. 'favoriteProviders' => $this['favoriteProviders'],
  21. 'providersClose' => $this['providersClose'],
  22. 'schedulesProposals' => $this['schedulesProposals'],
  23. ];
  24. }
  25. }