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

Domain

Profile Details
@if (!isset($domain))
@csrf
@include('content.special-field.field', [ 'id'=> 'domainName', 'type' => 'text', 'placeholder' => 'Company A', 'field' => 'domainName', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'domainUrl', 'type' => 'text', 'placeholder' => '', 'field' => 'domainUrl', 'message' => isset($message)?$message:'' ])
@if (Session::get('rol') == 'business') @include('content.special-field.field', [ 'id'=> 'business_id', 'type' => 'hidden', 'placeholder' => '', 'value' => Session::get('business.id'), 'field' => 'business_id', 'message' => isset($message)?$message:'' ]) @else
@include('content.special-field.field', [ 'id'=> 'business_id', 'type' => 'hidden', 'placeholder' => '', 'value' => isset($business->id) ? $business->id : '', 'field' => 'business_id', 'message' => isset($message)?$message:'' ])
@endif
Cancel
@else
@csrf
@include('content.special-field.field', [ 'id'=> 'domainName', 'type' => 'text', 'placeholder' => 'Company A', 'value' => $domain->friendlyName, 'field' => 'domainName', 'message' => isset($message)?$message:'' ])
@include('content.special-field.field', [ 'id'=> 'domainUrl', 'type' => 'text', 'placeholder' => '', 'value' => $domain->url, 'field' => 'domainUrl', 'message' => isset($message)?$message:'' ])
@if (Session::get('rol') == 'business') @include('content.special-field.field', [ 'id'=> 'business_id', 'type' => 'hidden', 'placeholder' => '', 'value' => Session::get('business.id'), 'field' => 'business_id', 'message' => isset($message)?$message:'' ]) @else
@include('content.special-field.field', [ 'id'=> 'business_id', 'type' => 'hidden', 'placeholder' => '', 'value' => $domain->business_id, 'field' => 'business_id', 'message' => isset($message)?$message:'' ])
@endif
Cancel
@endif
@endsection