@extends('client.layouts.main') @section('title', $contact->exists ? 'Edit Contact' : 'Create Contact') @section('content')
{{ $contact->exists ? 'Edit Contact' : 'New Contact' }}
@csrf @if($contact->exists) @method('PUT') @endif
@if ($errors->has('type')){{ $errors->first('type') }}@endif
@if ($errors->has('first_name')){{ $errors->first('first_name') }}@endif
@if ($errors->has('last_name')){{ $errors->first('last_name') }}@endif
@if ($errors->has('email')){{ $errors->first('email') }}@endif
@if ($errors->has('phone_cc')){{ $errors->first('phone_cc') }}@endif
@if ($errors->has('phone')){{ $errors->first('phone') }}@endif
@if ($errors->has('company')){{ $errors->first('company') }}@endif
@if ($errors->has('address_line_1')){{ $errors->first('address_line_1') }}@endif
@if ($errors->has('address_line_2')){{ $errors->first('address_line_2') }}@endif
@if ($errors->has('city')){{ $errors->first('city') }}@endif
@if ($errors->has('state')){{ $errors->first('state') }}@endif
@if ($errors->has('postal_code')){{ $errors->first('postal_code') }}@endif
@if ($errors->has('country_code')){{ $errors->first('country_code') }}@endif
@if ($errors->has('is_default')){{ $errors->first('is_default') }}@endif
@endsection