@include('include.css') @include('include.header') @section('Ib') active open @endsection @include('include.sidebar')
@section($active) active @endsection
Image Data
@php $i = 0; @endphp @foreach ($data as $imageData) @php $process = 'unhide'; $btn = 'danger'; $startDate = 'Not Found'; $endDate = 'Not Found'; $alert = 'black'; $page = 'Home'; $type = 'FIHL'; if ($imageData->page_type == 2) { $page = 'Premium'; } if ($imageData->status == 1) { $process = 'hide'; $btn = 'success'; } $i = ++$i; foreach ($startEndDate as $dateData) { if ($dateData->franchisor_id == $imageData->fihl_id) { $startDate = $dateData->start_date; $endDate = $dateData->end_date; $alert = 'black'; $type = 'FIHL'; if ($dateData->amount == 0) { $type = 'FIBL'; } if ( (int) strtotime($endDate) < (int) strtotime(date('Y-m-d H:i:s')) ) { $alert = 'red'; } } } @endphp @endforeach
S.No. Franchisor-ID Type Image Tenure Page Weightage Status Edit Image Delete Image
{{ $i }} {{ $imageData->fihl_id }} {{ $type }}
Start Date: {{ $startDate }}
End Date: {{ $endDate }}
{{ $page }} {{ $imageData->weightage }}
{{ $data->links('pagination::bootstrap-4') }}
@include('include.footer')