@extends('admin.app_admin') @section('admin_content')

{{ LISTING }}

@php $i=0; @endphp @foreach($listing as $row) @php $i++; @endphp @php $user_detail = \App\Models\User::where('id',$row->user_id)->first(); $admin_detail = \App\Models\Admin::where('id',$row->admin_id)->first(); @endphp @endforeach
{{ SERIAL }} {{ FEATURED_PHOTO }} {{ NAME }}, {{ BRAND }}, {{ LOCATION }} {{ STATUS }} {{ QUESTION_IS_FEATURED }} {{ ACTION }}
{{ $loop->iteration }} @if($row->user_id==0) {{ $row->listing_name }}
{{ ADDED_BY }}: {{ ADMIN }} @endif @if($row->admin_id==0) {{ $row->listing_name }}
{{ ADDED_BY }}: {{ $user_detail->name }} @endif
{{ BRAND_COLON }} {{ $row->rListingBrand->listing_brand_name }}
{{ LOCATION_COLON }} {{ $row->rListingLocation->listing_location_name }}
@if ($row->listing_status == 'Active') @else @endif @if($row->is_featured == 'Yes') {{ $row->is_featured }} @else {{ $row->is_featured }} @endif
@endsection