@extends('layout.master') @section('rps') active @endsection @section('content')
@section($active) active @endsection
@if (session()->has('ErrorImage'))
{{ session()->get('ErrorImage') }}
@elseif(session()->has('success'))
{{ session()->get('success') }}
@endif
Regional Data
--}} {{--
@php $i = 0; @endphp @foreach ($data as $imageData) @php $process = 'unhide'; $btn = 'danger'; $startDate = 'Not Found'; $endDate = 'Not Found'; $alert = 'black'; $type = 'FIHL'; 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 (strtotime($endDate) < strtotime(date('Y-m-d H:i:s'))) { $alert = 'red'; } } } @endphp @endforeach
S.No. Franchisor-ID Type Image Tenure Weightage State Status Actions
Start Date End Date Edit Delete
{{ $i }} {{ $imageData->fihl_id }} {{ $type }}
{{ $startDate }} {{ $endDate }} {{ $imageData->weightage }} {{ config('constants.stateArr')[$imageData->state_id] ?? 'Not Found' }}
{{ $data->links('pagination::bootstrap-4') }}
@endsection