@extends('admin.layouts.admin') @section('content') Home Countries Country @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @if($action == 'Edit') @else @endif @csrf @if(isset($record->id)) @php $id=$record->id @endphp @else @php $id=0; @endphp @endif {{ $title }} @if(isset($record->name)) @php $name=$record->name @endphp @elseif(old('name')) @php $name=old('name'); @endphp @else @php $name=''; @endphp @endif Name * @if(isset($record->code)) @php $code=$record->code @endphp @elseif(old('code')) @php $code=old('code'); @endphp @else @php $code=''; @endphp @endif Code * @if(isset($record->active)) @php $active=$record->active @endphp @elseif(old('active')) @php $active=old('active'); @endphp @else @php $active=1; @endphp @endif Active Submit @endsection