@extends('layouts.admin') @section('title', get_phrase('Listing List')) @section('admin_layout')
| {{get_phrase('ID')}} | {{get_phrase('Image')}} | {{get_phrase('Title')}} | {{get_phrase('Category')}} | @if ($type == 'car'){{get_phrase('Brand')}} | {{get_phrase('Model')}} | {{get_phrase('Price')}} | @elseif($type == 'real-estate' || $type == 'hotel'){{get_phrase('Price')}} | @endif{{get_phrase('Visibility')}} | {{get_phrase('Action')}} | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$num++}} |
|
{{$listing->title ?? 'N/A'}} @if(isset($claimStatus) && $claimStatus->status == 1) @endif | {{$category}} | {{-- @if ($type == 'car'){{$brand}} | {{$model}} | {{currency($listing->price)}} | @elseif($type == 'beauty') @elseif($type == 'real-estate' || $type == 'hotel'){{currency($listing->price)}} | @endif --}} @if ($type == 'car'){{ $brand }} | {{ $model }} | @if(!empty($listing->discount_price) && $listing->discount_price < $listing->price) {{ currency($listing->price) }} {{ currency($listing->discount_price) }} @else {{ currency($listing->price) }} @endif | @elseif($type == 'hotel')@if(!empty($listing->discount_price) && $listing->discount_price < $listing->price) {{ currency($listing->price) }} {{ currency($listing->discount_price) }} @else {{ currency($listing->price) }} @endif | @elseif($type == 'real-estate')@if(!empty($listing->discount) && $listing->discount < $listing->price) {{ currency($listing->price) }} {{ currency($listing->discount) }} @else {{ currency($listing->price) }} @endif | @endif{{ucwords($listing->visibility)}} |