@extends('index') @section('title', Helper::getSiteTitle($title)) @section('content')
{{ csrf_field() }}
@if($errors->any()) @elseif(session('message')) @endif
@php $start_date = null; if(!empty($code->start_date)) { $start_date = \Carbon\Carbon::parse($code->start_date)->format('Y-m-d'); } @endphp
@php $end_date = null; if(!empty($code->end_date)) { $end_date = \Carbon\Carbon::parse($code->end_date)->format('Y-m-d'); } @endphp
@php $active = Helper::getInputValue('active', $code->active) @endphp
@endsection @section('css-lib') @endsection @section('js-lib') @endsection