@if (count($allEquipments) > 0)
@foreach ($allEquipments as $equipment)
@if (!empty($equipment->offer))
{{ $equipment->offer . '% ' . __('off') }}
@endif
@php
$position = $currencyInfo->base_currency_symbol_position;
$symbol = $currencyInfo->base_currency_symbol;
@endphp
{{ __('Price') }}
@if (!empty($equipment->lowest_price))
{{ __('Starts From') }}
@endif
@if (!empty($equipment->lowest_price))
{{ $position == 'left' ? $symbol : '' }}{{ $equipment->lowest_price }}{{ $position == 'right' ? $symbol : '' }}
@endif
@if (!empty($equipment->per_day_price))
{{ $position == 'left' ? $symbol : '' }}{{ $equipment->per_day_price }}{{ $position == 'right' ? $symbol : '' }}{{ '/' . __('Day') }}
@endif
@if (!empty($equipment->per_week_price))
{{ $position == 'left' ? $symbol : '' }}{{ $equipment->per_week_price }}{{ $position == 'right' ? $symbol : '' }}{{ '/' . __('Week') }}
@endif
@if (!empty($equipment->per_month_price))
{{ $position == 'left' ? $symbol : '' }}{{ $equipment->per_month_price }}{{ $position == 'right' ? $symbol : '' }}{{ '/' . __('Month') }}
@endif
@php $features = explode(PHP_EOL, $equipment->features); @endphp
@foreach ($features as $feature)
@if ($loop->iteration <= 3)
- {{ $feature }}
@else
- {{ $feature }}
@endif
@endforeach
@if (count($features) > 3)
{{ __('More Features') . '...' }}
@endif
{{ number_format($equipment->avgRating, 2) }}
({{ $equipment->ratingCount . ' ' . __('rating') }})
{{ __('View') }}
@endforeach
@else
{{ __('No Equipment Found') }}
@endif
{{ $allEquipments->links() }}
@foreach ($categories as $item)
@php
$allEquipments = App\Models\Instrument\Equipment::query()
->where('vendor_id', $vendor->id)
->join('equipment_contents', 'equipments.id', '=', 'equipment_contents.equipment_id')
->where('equipment_contents.language_id', '=', $item->language_id)
->where('equipment_contents.equipment_category_id', '=', $item->id)
->select('equipments.id', 'equipments.thumbnail_image', 'equipments.lowest_price', 'equipment_contents.title', 'equipment_contents.slug', 'equipments.per_day_price', 'equipments.per_week_price', 'equipments.per_month_price', 'equipment_contents.features', 'equipments.offer')
->orderBy('equipments.id', 'desc')
->paginate(3);
@endphp
@if (count($allEquipments) > 0)
@foreach ($allEquipments as $equipment)
@if (!empty($equipment->offer))
{{ $equipment->offer . '% ' . __('off') }}
@endif
@php
$position = $currencyInfo->base_currency_symbol_position;
$symbol = $currencyInfo->base_currency_symbol;
@endphp
{{ __('Price') }}
@if (!empty($equipment->lowest_price))
{{ __('Starts From') }}
@endif
@if (!empty($equipment->lowest_price))
{{ $position == 'left' ? $symbol : '' }}{{ $equipment->lowest_price }}{{ $position == 'right' ? $symbol : '' }}
@endif
@if (!empty($equipment->per_day_price))
{{ $position == 'left' ? $symbol : '' }}{{ $equipment->per_day_price }}{{ $position == 'right' ? $symbol : '' }}{{ '/' . __('Day') }}
@endif
@if (!empty($equipment->per_week_price))
{{ $position == 'left' ? $symbol : '' }}{{ $equipment->per_week_price }}{{ $position == 'right' ? $symbol : '' }}{{ '/' . __('Week') }}
@endif
@if (!empty($equipment->per_month_price))
{{ $position == 'left' ? $symbol : '' }}{{ $equipment->per_month_price }}{{ $position == 'right' ? $symbol : '' }}{{ '/' . __('Month') }}
@endif
@php $features = explode(PHP_EOL, $equipment->features); @endphp
@foreach ($features as $feature)
@if ($loop->iteration <= 3)
- {{ $feature }}
@else
- {{ $feature }}
@endif
@endforeach
@if (count($features) > 3)
{{ __('More Features') . '...' }}
@endif
{{ number_format($equipment->avgRating, 2) }}
({{ $equipment->ratingCount . ' ' . __('rating') }})
{{ __('View') }}
@endforeach
@else
{{ __('No Equipment Found') }}
@endif
{{ $allEquipments->links() }}
@endforeach