{!! Form::label('id', 'Id:') !!}

{{ $ads->id }}

{!! Form::label('start_at', 'Start At:') !!}

{{ $ads->start_at->format('d-m-Y h:m A') }}

{!! Form::label('expires_at', 'Expires At:') !!}

{{ $ads->expires_at->format('d-m-Y h:m A') }}

{!! Form::label('title', 'Title:') !!}

{{ $ads->title }}

{!! Form::label('description', 'Description:') !!}

{{ $ads->description }}

@if($ads->file)
{!! Form::label('file', 'File:') !!} @if($file_extension == "mp4" || $file_extension == "mov" ) @else @endif
@endif
{!! Form::label('genders', 'Genders:') !!}

{{ App\Models\Ads::getDefaultGender($ads->genders) }}

{!! Form::label('min_age', 'Min Age:') !!}

{{ $ads->min_age }}

{!! Form::label('max_age', 'Max Age:') !!}

{{ $ads->max_age }}

{{-- @if($ads->user_limit)
{!! Form::label('user_limit', 'User Limit:') !!}

{{ $ads->user_limit }}

@endif --}}
{!! Form::label('max_impression_limit', 'Max Impression Limit:') !!}

{{ $ads->max_impression_limit }}

{!! Form::label('max_click_limit', 'Max Click Limit:') !!}

{{ $ads->max_click_limit }}

@if($ads->time_frame)
{!! Form::label('time_frame', 'Time Frame:') !!}

{{ $ads->time_frame }}

@endif
{!! Form::label('impression_count', 'Impression Count:') !!}

{{ $ads->impression_count }}

{!! Form::label('click_count', 'Click Count:') !!}

{{ $ads->click_count }}

@if($ads->url)
{!! Form::label('url', 'Url:') !!}

{{ $ads->url }}

@endif @if($ads->adsLocation)
{!! Form::label('address', 'Address:') !!} @foreach($ads->adsLocation as $adsLocation)

{{ $adsLocation->address." (radius: ".$adsLocation->radius.")"}}

{!! Form::open(['route' => ['adsLocation-delete', $adsLocation->id], 'method' => 'delete']) !!} {!! Form::button('', [ 'type' => 'submit', 'class' => 'btn btn-danger btn-xs mt-2', 'onclick' => "return confirm('Are you sure?')" ]) !!} {!! Form::close() !!} @endforeach
@endif
{!! Form::label('status', 'Status:') !!} @if($ads->status==App\Models\Ads::STATUS_INACTIVE)

Inactive

@elseif($ads->status==App\Models\Ads::STATUS_ACTIVE)

Active

@endif
@if($ads->message)
{!! Form::label('message', 'Message:') !!}

{{ $ads->message }}

@endif
{!! Form::label('created_by', 'Created By:') !!}

{{ $ads->user->name }}

{!! Form::label('created_at', 'Created At:') !!}

{{ $ads->created_at }}

{!! Form::label('updated_at', 'Updated At:') !!}

{{ $ads->updated_at }}