@extends('layouts.backend',['page_title'=>'Pages']) @section('title')@parent - {{ trans('product.globals.categories') }} @stop @section('content-header')

{{ trans('general.ads') }}

@if(auth()->user()->role_id == 1 || auth()->user()->can('ads.create')) {{trans('backend.Add New')}} @endif
@stop @section('content')
@if($ads && count($ads) > 0) @foreach($ads as $key=>$ad) @endforeach @else @endif
{{ trans('backend.fields.Logo') }} {{ trans('backend.fields.name') }} {{ trans('backend.section') }} {{ trans('backend.industries') }} {{ trans('backend.fields.status') }} {{ trans('backend.action') }}
@if(!empty($ad->hasMedia('images'))) Image @endif {!! $ad->name !!} @if($ad->section == 1) الاعلان الافقى الايسر @endif @if($ad->section == 2) الاعلان الافقى الاوسط @endif @if($ad->section == 3) الاعلان الافقى الايمن @endif @if($ad->section == 4) اعلان الرئيسيه @endif @if($ad->section == 5) الاعلان الرأسى الايسر @endif @if($ad->section == 7) الاعلان الراسى الايمن @endif @if($ad->section == 6) اعلان العروض @endif @if($ad->section == 8) اعلان البحث@endif @if($ad->industry) {!! $ad->industry->title !!} @endif @if($ad->active)
{{ trans('backend.Active') }}
@else
{{ trans('backend.Not Active') }}
@endif
@if(auth()->user()->role_id == 1 || auth()->user()->can('ads.show')) @endif @if(auth()->user()->role_id == 1 || auth()->user()->can('ads.edit')) @endif @if(auth()->user()->role_id == 1 || auth()->user()->can('ads.destroy')) id) }}' class="btn btn-danger btn-sm delete" data-toggle="tooltip" title="{{trans('backend.Delete')}}"> @endif
{{trans('backend.no records founded')}}
@stop @section('scripts') @stop