@extends('layouts.layout') @section('title', 'Dashboard') @section('content') @php if(url()->full()) { $url = url()->full(); $parsed_url = parse_url($url); if(!empty($parsed_url)){ parse_str($parsed_url['query'], $query_params); if (isset($query_params['active_tab'])) { $active_tab = $query_params['active_tab']; } } } @endphp
@if(isset($general_information['name']))

Edit General Information

@else

Add General Information

@endif
@csrf @if(isset($general_information['name'])) @endif

About

@if ($errors->has('franchise_name')) @endif
@if ($errors->has('franchise_email')) @endif
@if ($errors->has('franchise_code')) @endif
@if ($errors->has('company_name')) @endif

Owner

@if ($errors->has('owner_first_name')) @endif
@if ($errors->has('owner_last_name')) @endif
@if ($errors->has('owner_email')) @endif
@if($errors->has('owner_phone')) @endif
@if ($errors->has('owner_dob')) @endif

Business Address

@if ($errors->has('business_address1')) @endif
@if ($errors->has('business_address2')) @endif
@if ($errors->has('business_address3')) @endif
@if ($errors->has('business_postcode')) @endif
@if ($errors->has('business_county')) @endif
@if ($errors->has('business_country')) @endif

Delivery Address For Shop Items

@if ($errors->has('delivery_address1')) @endif
@if ($errors->has('delivery_address2')) @endif
@if ($errors->has('delivery_address3')) @endif
@if ($errors->has('delivery_postcode')) @endif
@if ($errors->has('delivery_county')) @endif
@if($errors->has('delivery_country')) @endif

Booking & Contact Information

@if($errors->has('contact_first_name')) @endif
@if($errors->has('contact_last_name')) @endif
@if($errors->has('contact_email_adrress')) @endif
@if($errors->has('contact_phone')) @endif

Certificate Generation

Number of weeks before end of term to create certificate

@if($errors->has('certificate')) @endif

Payment Methods

@if ($errors->has('payment_method')) @endif
@if(isset($general_information['id'])) @else @endif
@csrf @if(isset($general_information['franchise_financial_data']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

Financial

@if ($errors->has('comission')) @endif
@if ($errors->has('monthly_marketing_levi')) @endif
@if ($errors->has('monthly_system_cost')) @endif

Banking

@if ($errors->has('bank_name')) @endif
@if ($errors->has('account_holder_name')) @endif
@if ($errors->has('account_no')) @endif
@if ($errors->has('sort_code')) @endif
@if ($errors->has('live_key')) @endif
@if ($errors->has('live_secret_key')) @endif
@if ($errors->has('test_key')) @endif
@if ($errors->has('test_secret_key')) @endif
@if(isset($general_information['id'])) @else @endif

Invoice

Invoice Number Date Net Vat Total Status

Financial Change History - MSF

@php $i=0;@endphp @if(!empty($general_information['franchise_comission_history'])) @foreach($general_information['franchise_comission_history'] as $key=>$value) @endforeach @endif
Comission(%) Valid From Valid Till Status
{{$value['comission'].'%'}} {{$value['start_date']}} {{$value['end_date']}} @if($key == $i) {{'Active'}} @else{{'In active'}} @endif

Financial Change History - Marketing Levi

@php $i=0;@endphp @if(!empty($general_information['franchise_levi_history'])) @foreach($general_information['franchise_levi_history'] as $key=>$value) @endforeach @endif
Levi (%) Valid From Valid Till Status
{{$value['levi'].'%'}} {{$value['start_date']}} {{$value['end_date']}} @if($key == $i) {{'Active'}} @else{{'In active'}} @endif

Financial Change History - Monthly System Costs

@php $i=0;@endphp @if(!empty($general_information['franchise_cost_history'])) @foreach($general_information['franchise_cost_history'] as $key=>$value) @endforeach @endif
Cost (£) Valid From Valid Till Status
{{'£'.$value['cost']}} {{$value['start_date']}} {{$value['end_date']}} @if($key == $i) {{'Active'}} @else{{'In active'}} @endif
@csrf @if(isset($general_information['franchise_vat']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

VAT

@if ($errors->has('registered')) @endif
@if(isset($general_information['id'])) @else @endif

VAT History

@php $i=0;@endphp @if(!empty($general_information['franchise_vat_history'])) @foreach($general_information['franchise_vat_history'] as $key=>$value) @endforeach @endif
VAT Status Date Changed Number VAT Rate
@if($key == $i) {{'Live'}} @else{{'Disabled'}} @endif {{$value['date']}} {{($value['number'])?$value['number']:'empty'}} 10%
@csrf

Add New Agreement

@if(isset($general_information['franchise_agreement']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif
@if($errors->has('agreement_date')) @endif
@if(isset($general_information['franchise_agreement']['document'])) View Document @endif @if($errors->has('document')) @endif
@if($errors->has('renewal_date')) @endif
@if(isset($general_information['id'])) @else @endif

Current & Previous Agreement

@php $i=0;@endphp @if(!empty($general_information['franchise_agreement_history'])) @foreach($general_information['franchise_agreement_history'] as $key=>$value) @endforeach @endif
Agreement Date Renewal Date Status View
{{date('d/m/y', strtotime($value['agreement_date']))}} {{date('d/m/y', strtotime($value['renewal_date']))}} @if($key == $i) {{'Current'}} @else{{'Lapsed'}} @endif {{'Agreement_'.$value['agreement_date']}}
@csrf

Public Liability Insurance

@if(isset($general_information['franchise_insurance']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif
@if($errors->has('policy_start_date')) @endif
@if(isset($general_information['franchise_insurance']['document'])) View Document @endif @if($errors->has('document')) @endif
@if($errors->has('policy_end_date')) @endif
@if(isset($general_information['id'])) @else @endif

Current & Previous Policies

@php $i=0;@endphp @if(!empty($general_information['franchise_insurance_history'])) @foreach($general_information['franchise_insurance_history'] 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 {{'Certificate'}}
@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['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 {{'Certificate'}}

Venue Information

Add Another Venue
@csrf @if(isset($general_information['id'])) @endif @if(isset($general_information['franchise_venue']) && !empty($general_information['franchise_venue'])) @foreach($general_information['franchise_venue'] as $venue_key => $value_for_venue)

Venue

Delete Venue
@if($errors->has('venue_name')) @endif
@if($errors->has('venue_address1')) @endif
@if($errors->has('venue_address2')) @endif
@if($errors->has('venue_address3')) @endif
@if($errors->has('venue_postcode')) @endif
@if($errors->has('venue_county')) @endif
@if($errors->has('venue_country')) @endif
@if($errors->has('toggle')) @endif
@if($errors->has('venue_park_detail')) @endif

Venue Featured Image

@if(isset($value_for_venue['venue_image'])) Image @endif @if($errors->has('image')) @endif
@if($errors->has('image_label')) @endif
@if (!empty($general_information['franchise_nearby_venues']) && !in_array($value_for_venue['id'], array_column($general_information['franchise_nearby_venues'], 'venue_id'))) @endif @empty($general_information['franchise_nearby_venues']) @endempty @foreach($general_information['franchise_nearby_venues'] as $venue_nearby_key => $venue_nearby_value) @if ($venue_nearby_value['venue_id'] == $value_for_venue['id'])

Near By

@if($errors->has('nearby_venue_name')) @endif
@if($errors->has('nearby_venue_address1')) @endif
@if($errors->has('nearby_venue_address2')) @endif
@if($errors->has('nearby_venue_address3')) @endif
@if($errors->has('nearby_venue_postcode')) @endif
@if($errors->has('nearby_venue_county')) @endif
@if($errors->has('nearby_venue_country')) @endif
@if($errors->has('nearby_venue_phone')) @endif
@if($errors->has('nearby_venue_meters')) @endif
@endif @endforeach
@endforeach @else

Venue

Delete Venue
@if($errors->has('venue_name')) @endif
@if($errors->has('venue_address1')) @endif
@if($errors->has('venue_address2')) @endif
@if($errors->has('venue_address3')) @endif
@if($errors->has('venue_postcode')) @endif
@if($errors->has('venue_county')) @endif
@if($errors->has('venue_country')) @endif
@if($errors->has('toggle')) @endif
@if($errors->has('venue_park_detail')) @endif

Venue Featured Image

@if($errors->has('image')) @endif
@if($errors->has('image_label')) @endif

Near By

@if($errors->has('nearby_venue_name')) @endif
@if($errors->has('nearby_venue_address1')) @endif
@if($errors->has('nearby_venue_address2')) @endif
@if($errors->has('nearby_venue_address3')) @endif
@if($errors->has('nearby_venue_postcode')) @endif
@if($errors->has('nearby_venue_county')) @endif
@if($errors->has('nearby_venue_country')) @endif
@if($errors->has('nearby_venue_phone')) @endif
@if($errors->has('nearby_venue_meters')) @endif
{{--
--}}
@endif
@if(isset($general_information['id'])) @else @endif
{{--
--}} {{-- @csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif --}}
@csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

Featured Image

@if(isset($general_information) && in_array("general_tab", array_column($general_information['franchise_cms'], 'type'))) Image @endif @if($errors->has('general_image')) @endif @foreach ($errors->get('general_image.*') as $errorMessages) @foreach ($errorMessages as $errorMessage) @endforeach @endforeach
@if($errors->has('general_image_label')) @endif
@if(isset($general_information['id'])) @else @endif
@csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

About Tab

@if($errors->has('about_header')) @endif
@if($errors->has('about_description')) @endif
@if($errors->has('media_type')) @endif
{{-- @if(isset($general_information['franchise_cms'][1]['type'])) @if($general_information['franchise_cms'][1]['type']=='about_tab') Image @endif @endif --}} @if(isset($general_information) && in_array("about_tab", array_column($general_information['franchise_cms'], 'type'))) Image @endif @if($errors->has('about_image')) @endif @foreach ($errors->get('about_image.*') as $errorMessages) @foreach ($errorMessages as $errorMessage) @endforeach @endforeach
@if($errors->has('about_image_label')) @endif

SEO Data

@if($errors->has('about_seo_title')) @endif
@if($errors->has('about_seo_keywords')) @endif
@if($errors->has('about_seo_description')) @endif
@if(isset($general_information['id'])) @else @endif
@csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

Location Tab

Location Featured Image

{{-- @if(isset($general_information['franchise_cms'][2]['type'])) @if($general_information['franchise_cms'][2]['type']=='location_tab') Image @endif @endif --}} @if(isset($general_information) && in_array("location_tab", array_column($general_information['franchise_cms'], 'type'))) Image @endif @if($errors->has('location_image')) @endif @foreach ($errors->get('location_image.*') as $errorMessages) @foreach ($errorMessages as $errorMessage) @endforeach @endforeach
@if($errors->has('location_image_label')) @endif

SEO Data

@if($errors->has('location_seo_title')) @endif
@if($errors->has('location_seo_keywords')) @endif
@if($errors->has('location_seo_description')) @endif
@if(isset($general_information['id'])) @else @endif
@csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

Team Tab

Location Featured Image

{{-- @if(isset($general_information['franchise_cms'][((in_array("team_tab", array_column($general_information['franchise_cms'], 'type')) ? array_search('team_tab', array_column($general_information['franchise_cms'], 'type')) : ''))]['type'])) @if($general_information['franchise_cms'][((in_array("team_tab", array_column($general_information['franchise_cms'], 'type')) ? array_search('team_tab', array_column($general_information['franchise_cms'], 'type')) : ''))]['type']=='team_tab') Image @endif @endif --}} @if(isset($general_information) && in_array("team_tab", array_column($general_information['franchise_cms'], 'type'))) Image @endif @if($errors->has('team_image')) @endif @foreach ($errors->get('team_image.*') as $errorMessages) @foreach ($errorMessages as $errorMessage) @endforeach @endforeach
@if($errors->has('team_image_label')) @endif

SEO Data

@if($errors->has('team_seo_title')) @endif
@if($errors->has('team_seo_keywords')) @endif
@if($errors->has('team_seo_description')) @endif
@if($errors->has('team_header')) @endif
@if($errors->has('team_description')) @endif
@if(isset($general_information['id'])) @else @endif
@csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

Classes Tab

SEO Data

@if($errors->has('classes_seo_title')) @endif
@if($errors->has('classes_seo_keywords')) @endif
@if($errors->has('classes_seo_description')) @endif
@if(isset($general_information['id'])) @else @endif
@csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

Reviews Tab

SEO Data

@if($errors->has('review_seo_title')) @endif
@if($errors->has('review_seo_keywords')) @endif
@if($errors->has('review_seo_description')) @endif
@if(isset($general_information['id'])) @else @endif
@csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

News Tab

SEO Data

@if($errors->has('news_seo_title')) @endif
@if($errors->has('news_seo_keywords')) @endif
@if($errors->has('news_seo_description')) @endif
@if(isset($general_information['id'])) @else @endif
@csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

Get In Touch Tab

SEO Data

@if($errors->has('get_in_touch_seo_title')) @endif
@if($errors->has('get_in_touch_seo_keywords')) @endif
@if($errors->has('get_in_touch_seo_description')) @endif
@if(isset($general_information['id'])) @else @endif

Terms And Condition

@csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif
@if(isset($general_information['id'])) @else @endif

FAQ's

@csrf @if(isset($general_information['franchise_cms']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif
@if(isset($general_information['franchise_cms_faq'])) @foreach($general_information['franchise_cms_faq'] as $value_faq)
  • @if(!empty(count($errors->get('question.*')))) @for($i=1;$i < count($errors->get('question.*'));$i++)
  • @endfor @endif
@endforeach @else
  • @if(!empty(count($errors->get('question.*')))) @for($i=1;$i < count($errors->get('question.*'));$i++)
  • @endfor @endif
@endif
@if(isset($general_information['id'])) @else @endif
@csrf @if(isset($general_information['franchise_email_signature']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

Email Signature

@if($errors->has('franchise_name_email_signature')) @endif
@if($errors->has('company_legal_name')) @endif
@if($errors->has('email_address')) @endif
@if($errors->has('disclaimer')) @endif
@if($errors->has('announcement')) @endif
@if(isset($general_information['id'])) @else @endif
@csrf @if(isset($general_information['franchise_birthday_parties']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif

Holiday Camps

Show

@if($errors->has('show')) @endif
@if(isset($general_information['franchise_birthday_parties']['birthday_image'])) Image @endif @if($errors->has('document')) @endif @if($errors->has('birthday_image')) @endif @foreach ($errors->get('birthday_image.*') as $errorMessages) @foreach ($errorMessages as $errorMessage) @endforeach @endforeach
@if($errors->has('birthday_image_label')) @endif

SEO Data

@if($errors->has('seo_title')) @endif
@if($errors->has('seo_keywords')) @endif
@if($errors->has('seo_description')) @endif
@if($errors->has('what_does_jigsaw_provide')) @endif
@if($errors->has('what_do_i_need_to_provide')) @endif
@if(isset($general_information['franchise_birthday_parties']['what_do_i_need_to_provide_image'])) Image @endif @if($errors->has('old_what_do_i_need_to_provide_image')) @endif @if($errors->has('what_do_i_need_to_provide_image')) @endif @foreach ($errors->get('what_do_i_need_to_provide_image.*') as $errorMessages) @foreach ($errorMessages as $errorMessage) @endforeach @endforeach
@if($errors->has('what_do_i_need_to_provide_label')) @endif
@if($errors->has('cost_and_booking_desc')) @endif

Cost and Booking Image

@if(isset($general_information['franchise_birthday_parties']['what_do_i_need_to_provide_image'])) Image @endif @if($errors->has('cost_and_booking_image')) @endif @foreach ($errors->get('cost_and_booking_image.*') as $errorMessages) @foreach ($errorMessages as $errorMessage) @endforeach @endforeach
@if($errors->has('cost_and_booking_label')) @endif
@if(isset($general_information['id'])) @else @endif

Terms

Terms Start End Bookings Opens Until Renewal Date Send Hold Pre Allocations Until Action
terms 2024 28/09/24 28/09/24 28/09/24 28/09/24 28/09/24

SMS

@csrf @if(isset($general_information['franchise_insurance']['franchise_id'])) @endif @if(isset($general_information['id'])) @endif
@if($errors->has('user_name')) @endif
@if($errors->has('user_password')) @endif
@if($errors->has('user_from_number')) @endif
@if(isset($general_information['id'])) @else @endif

Shop Orders

Order ID Transcation Date Items Ammount Delivery Status
@endsection