@extends('layouts.layout') @section('title', 'Data Protection') @section('content')
@include('franchises_dynamic.sidebar')
@csrf

Data Protection Certificate

@if(isset($general_information['franchise_data_protection']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif
@if($errors->has('data_protection_policy_start_date')) @endif
@if(isset($general_information['franchise_data_protection']['document'])) View Document @endif
@if($errors->has('data_protection_policy_end_date')) @endif
@if(isset($general_information['franchise_data_protection']['id'])) @else @endif

Current & Previous Policies

@php $i=0;@endphp @if(!empty($general_information['franchise_data_protection_histroy'])) @foreach($general_information['franchise_data_protection_histroy'] as $key=>$value) @endforeach @endif
Start Date End Date Status View
{{date('d/m/y', strtotime($value['start_date']))}} {{date('d/m/y', strtotime($value['end_date']))}} @if($key == $i) {{'Current'}} @else{{'Lapsed'}} @endif {{'DPC_'.date('d/m/y', strtotime($value['updated_at'])).'_'.date('H:i', strtotime($value['updated_at']))}}
@if(isset($general_information['franchise_data_protection']['id'])) {!! JsValidator::formRequest('App\Http\Requests\DataProtectionUpdateRequest') !!} @else {!! JsValidator::formRequest('App\Http\Requests\DataProtectionRequest') !!} @endif @endsection