@extends('../../master_layout/website_master') @section('title') {{env('APP_NAME')}} :: My Banners @endsection @section('heading')
Back

My Banners

@php $breadcrumb = array( array('title'=>'My Banners', 'url'=>'', 'active'=>'1') ); @endphp @include('website_view.component.breadcrumb', compact("breadcrumb"))
@endsection @section('content') @if (session('errors'))
@foreach($errors->all() as $message)
  • {{$message}}
  • @endforeach
    @endif
    @if (session('message'))
    @endif
    @if(isset($banners) && !empty($banners)) @foreach($banners as $banner) @php $today_date = date("Y-m-d H:i:s"); //check next available slot $search_banner = array(); $search_banner['spot'] = $banner->spot; $search_banner['banner_position'] = $banner->banner_position; if(isset($banner->country_id) && $banner->country_id !=''){ $search_banner['country_id'] = $banner->country_id; } if(isset($banner->city_id) && $banner->city_id !=''){ $search_banner['city_id'] = $banner->city_id; } if(isset($banner->city_location_id) && $banner->city_location_id !=''){ $search_banner['city_location_id'] = $banner->city_location_id; } if(isset($banner->city_location_area_id) && $banner->city_location_area_id !=''){ $search_banner['city_location_area_id'] = $banner->city_location_area_id; } $search_banner['orderby'] = 'tbl_banner_subscription.end_date'; $search_banner['sortorder'] = 'DESC'; $search_banner['singlerow'] = 1; $search_banner['enddategreater'] = $today_date; $nextavailable_banner_list = banner_subscription($search_banner); if(isset($nextavailable_banner_list) && !empty($nextavailable_banner_list)){ $active_banner_enddate = $nextavailable_banner_list->end_date; $banner_enddate = date("Y-m-d", strtotime($active_banner_enddate)); $nextavailable_date = date('d/m/Y', strtotime($banner_enddate . ' +1 day')); } else { $nextavailable_date = date("d/m/Y"); } @endphp

    {{$banner->banner_position}} Banner #{{$banner->spot}}

    {{ $banner->country_name }} @if(isset($banner->city_name) && $banner->city_name !=''){{', '.$banner->city_name}} @endif @if(isset($banner->location_name) && $banner->location_name !=''){{', '.$banner->location_name}} @endif @if(isset($banner->area_name) && $banner->area_name !=''){{', '.$banner->area_name}} @endif
    @if($banner->enable_link == 1)
    Display URL on Banner : YES
    @if(isset($banner->phone_number) && $banner->phone_number !='')
    Phone: +{{$banner->phone_code}}{{$banner->phone_number}}
    @endif @endif
    Valid from: {{date('d/m/Y', strtotime($banner->start_date))}}
    Valid till: {{date('d/m/Y', strtotime($banner->end_date))}}
    Published: @if($banner->status == 2) Suspended @else status == '1'){{'checked'}}@endif data-bsid="{{$banner->banner_subscription_id}}" data-toggle="toggle" data-onstyle="success" data-size="xs"> @endif

    Next Available Slot On: {{$nextavailable_date}}

    @if(isset($banner->area_name) && $banner->area_name !='') Rebook the SPOT @elseif(isset($banner->location_name) && $banner->location_name !='') Rebook the SPOT @elseif(isset($banner->city_name) && $banner->city_name !='') Rebook the SPOT @else Rebook the SPOT @endif
    @endforeach @else No Active Banners. @endif
    @endsection @section('custom_css') @endsection @section('custom_js') @endsection