@extends('layouts.app') @section('title') {{__('messages.vcard.edit_vcard')}} @endsection @section('content')

{{__('messages.vcard.edit_vcard')}}

@php $design_data = [ 'first_name' => $vcard->first_name, 'last_name' => $vcard->last_name, 'email' => $vcard->email, 'region_code' => $vcard->region_code, 'phone' => $vcard->phone, 'location' => $vcard->location, 'location_url' => $vcard->location_url, 'job_title' => $vcard->job_title, 'company' => $vcard->company, 'alternative_email' => $vcard->alternative_email, 'alternative_phone' => $vcard->alternative_phone, 'alternative_region_code' => $vcard->alternative_region_code, 'profile_url' => asset('api/i/' . explode('/', $vcard->profile_url , 4)[3]), 'cover_url' => asset('api/i/' . explode('/', $vcard->cover_url , 4)[3]), ]; @endphp {{ __('messages.design_the_card') }} {{ __('messages.common.back') }}
@if(Session::has('success'))

{{ getSuccessMessage(Request::query('part')).Session::get('success') }}

@endif @include('layouts.errors') @include('flash::message')
@include('vcards.sub_menu') @if($partName !== 'services'&& $partName !=='products'&& $partName !=='testimonials' && $partName !=='gallery' && $partName !=='blogs')
@endif {{ Form::hidden('is_true', Request::query('part') == 'business_hours',['id' => 'vcardCreateEditIsTrue']) }} @if($partName != 'services' && $partName != 'blogs' && $partName != 'testimonials' && $partName != 'products' && $partName != 'gallery') {!! Form::open(['route' => ['vcards.update', $vcard->id], 'id' => 'editForm', 'method' => 'put', 'files' => 'true']) !!} @include('vcards.fields') {{ Form::close() }} @else @if($partName === 'services') @include('vcards.services.index') @elseif($partName === 'products') @include('vcards.products.index') @elseif($partName === 'gallery') @include('vcards.gallery.index') @elseif($partName === 'blogs') @include('vcards.blogs.index') @else @include('vcards.testimonials.index') @endif @endif @if($partName !== 'services'&& $partName !=='products'&& $partName !=='testimonials' && $partName !=='gallery' && $partName !=='blogs')
@endif
@endsection