@extends('layouts/app') @section('css') @stop @section('content')

Kiosk Content Management

@if (Session::has('message'))
Success!
{{ Session::get('message') }} @php Session::forget('message'); @endphp
@endif @if(Session::has('error'))
Errors!
@foreach(Session::get('error') as $err) {{ $err }}
@endforeach @php Session::forget('error'); @endphp
@endif
@if (count($items)) @php $max_row = count($items); $min_row = 0; @endphp @foreach ($items as $item) @php $min_row++; @endphp @endforeach
Active Branch Display Duration Data
Delete Edit @if ($min_row == 1 && $max_row > 1) @endif @if ($min_row > 1 && $min_row < $max_row) @elseif($min_row == $max_row && $max_row > 1) @endif @if ($item->active) @else @endif @if ($item->all_branch == '1') Display all Branches @else @php $branchIds = json_decode($item->allow_branch, true); @endphp @foreach ($branches as $branch) @if (in_array($branch->id, $branchIds)) {{ $branch->code }} @endif @endforeach @endif @if ($item->duration) {{$item->duration }} sec @endif @php $key = array_search($item->guid, array_column($banner_list['banner_list'], 'guid')); @endphp @if ($key !== false) @if ($item->item_type == 'image') @else
@else @endif
@endsection @section('js') @stop