@extends('admin.layouts.app')
@section('title', 'All Rentals')
@section('section')
@php
if (!empty($rentals->content)) {
// Decode the 'content' JSON string into an associative array.
$decodedData = json_decode($rentals->content, true);
}
@endphp
Rentals Section
| Title |
Capacity |
Standard |
Image |
Edit |
Delete |
@foreach($get_rentals as $get_rental)
| {{$get_rental->title}} |
{{ isset($get_rental->capacity) ? number_format($get_rental->capacity) : '' }} |
{{ isset($get_rental->price) ? number_format($get_rental->price) : '' }} |
 :asset('admin/dist/img/placeholder.png')}}) |
Edit |
Delete |
@endforeach
@endsection
@section('script')
@endsection