@extends('admin.layouts.main') @section('title') @if(Session::has('editUrl')) Edit Franchise @else Add Franchise @endif @endsection @section('content') @include("admin.common.sidebar") {{ @trans('franchises.franchises') }} @if(Session::has('editUrl')) {{ @trans('franchises.edit_frecnchise') }} @else {{ @trans('franchises.add_frecnchise') }} @endif 1. {{ @trans('franchises.franchise') }} trending_flat2. {{ @trans('franchises.location_details') }} trending_flat3. {{ @trans('franchises.finance') }} trending_flat4. {{ @trans('franchises.documentation') }} trending_flat5. {{ @trans('franchises.credentials') }} {{ csrf_field() }} {{ @trans('franchises.address') }} {{ @trans('franchises.address_line') }} 1* @if($errors->has('address1')) {{ $errors->first('address1') }} @endif {{ @trans('franchises.address_line') }} 2 * @if($errors->has('address2')) {{ $errors->first('address2') }} @endif {{ @trans('franchises.country') }} * {{ @trans('franchises.select_country') }} @foreach($countryList as $key => $country) countries->id == old('country_id')) selected="selected" @elseif($country->countries->id == $franchise->country_id) selected="selected" @endif value="{{$country->countries->id}}">{{$country->countries->name}} @endforeach @if($errors->has('country_id')) {{ $errors->first('country_id') }} @endif {{ @trans('franchises.state') }} * {{ @trans('franchises.select_state') }} @if($errors->has('state_id')) {{ $errors->first('state_id') }} @endif {{ @trans('franchises.city') }} * {{ @trans('franchises.select_city') }} @if($errors->has('city_id')) {{ $errors->first('city_id') }} @endif {{ @trans('franchises.zipcode') }} * @if($errors->has('zip_code')) {{ $errors->first('zip_code') }} @endif {{ @trans('franchises.phone_number') }} * @if($errors->has('mobile')) {{ $errors->first('mobile') }} @endif {{ @trans('franchises.alternate_phone_number') }} @if($errors->has('secondary_mobile')) {{ $errors->first('secondary_mobile') }} @endif @if(Session::has('editUrl')) {{ @trans('franchises.cancel') }} @else {{ @trans('franchises.cancel') }} @endif @if(Session::has('editUrl')) @else {{ @trans('franchises.previous') }} @endif @endsection @push('pageJs') {!! JsValidator::formRequest('App\Http\Requests\Franchise\FranchiseLocationDetail', '#frmlocationdetail') !!} @endpush