@extends('layouts/contentNavbarLayout') @section('title', 'Create Coupon') @section('page-script') @endsection @section('content')

Location / Create

@if ( !isset($location) )
@csrf
@if ( Session::get('domains')<=1 && Session::get('rol') == 'business') @include('content.special-field.field', [ 'id'=> 'domain_id', 'type' => 'hidden', 'placeholder' => '', 'value' => isset($domain->id) ? $domain->id : '', 'field' => 'domain_id', 'message' => isset($message)?$message:'' ]) @else
@include('content.special-field.field', [ 'id'=> 'domain_id', 'type' => 'hidden', 'placeholder' => '', 'value' => isset($domain->id) ? $domain->id : '', 'field' => 'domain_id', 'message' => isset($message)?$message:'' ])
@endif
@include('content.special-field.field', [ 'id'=> 'locationArea', 'type' => 'text', 'placeholder' => '', 'field' => 'locationArea', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationLocality', 'type' => 'text', 'placeholder' => '', 'field' => 'locationLocality', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationRoute', 'type' => 'text', 'placeholder' => '', 'field' => 'locationRoute', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationStreet', 'type' => 'text', 'placeholder' => '', 'field' => 'locationStreet', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationState', 'type' => 'text', 'placeholder' => '', 'field' => 'locationState', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationZip', 'type' => 'text', 'placeholder' => '', 'field' => 'locationZip', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationLatitude', 'type' => 'text', 'placeholder' => '', 'field' => 'locationLatitude', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationLongitude', 'type' => 'text', 'placeholder' => '', 'field' => 'locationLongitude', 'message' => isset($message)?$message:'' ])
Cancel
@else
@csrf
@if ( Session::get('domains')<=1 && Session::get('rol') == 'business') @include('content.special-field.field', [ 'id'=> 'domain_id', 'type' => 'hidden', 'placeholder' => '', 'value' => isset($domain->id) ? $domain->id : '', 'field' => 'domain_id', 'message' => isset($message)?$message:'' ]) @else
@include('content.special-field.field', [ 'id'=> 'domain_id', 'type' => 'hidden', 'placeholder' => '', 'value' => isset($domain->id) ? $domain->id : '', 'field' => 'domain_id', 'message' => isset($message)?$message:'' ])
@endif
@include('content.special-field.field', [ 'id'=> 'locationArea', 'type' => 'text', 'placeholder' => '', 'value' => $location->administrative_area_level, 'field' => 'locationArea', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationLocality', 'type' => 'text', 'placeholder' => '', 'value' => $location->locality, 'field' => 'locationLocality', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationRoute', 'type' => 'text', 'placeholder' => '', 'value' => $location->route, 'field' => 'locationRoute', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationStreet', 'type' => 'text', 'placeholder' => '', 'value' => $location->street_number, 'field' => 'locationStreet', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationState', 'type' => 'text', 'placeholder' => '', 'value' => $location->state, 'field' => 'locationState', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationZip', 'type' => 'text', 'placeholder' => '', 'value' => $location->zipCode, 'field' => 'locationZip', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationLatitude', 'type' => 'text', 'placeholder' => '', 'value' => $location->lat, 'field' => 'locationLatitude', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'locationLongitude', 'type' => 'text', 'placeholder' => '', 'value' => $location->long, 'field' => 'locationLongitude', 'message' => isset($message)?$message:'' ])
Cancel
@endif
@endsection