@extends('admin.layouts.master') @section('css') @endsection @section('content')
{!! Form::model($row,[ 'method' => 'PUT', 'route' => [\App\Helpers\Helper::adminPrefix() . '.update', $row], 'name' => 'user-form', 'id' => 'user-form', 'autocomplete' => 'off' ]) !!}

{{ __('Edit') }} {{ \App\Helpers\Helper::pagePrefix(2) }}

Cancel
{!! Form::label('service_id', 'Service :', ['class' => 'control-label']) !!} {!! Form::select('service_id', \App\Helpers\Helper::services(false), old('service_id'), ['class' => $errors->has('service_id') ? 'form-control is-invalid' : 'form-control', 'id' => 'service_id']) !!} @if ($errors->has('service_id')) {{ $errors->first('service_id') }} @endif
{!! Form::label('promo_limit', 'Promo Limit :', ['class' => 'control-label']) !!} {!! Form::number('promo_limit', old('promo_limit', $row->promo_limit), ['class' => $errors->has('promo_limit') ? 'form-control is-invalid' : 'form-control', 'id' => 'promo_limit', 'placeholder' => 'Promo limit']) !!} @if ($errors->has('promo_limit')) {{ $errors->first('promo_limit') }} @endif
{!! Form::label('promo_at', 'Promo Date :', ['class' => 'control-label']) !!}
{!! Form::text('promo_at', old('promo_at', \Carbon\Carbon::parse($row->promo_at)->format('d-m-Y')), ['class' => $errors->has('promo_at') ? 'form-control is-invalid' : 'form-control', 'id' => 'promo_at']) !!}
@if ($errors->has('promo_at')) {{ $errors->first('promo_at') }} @endif
{!! Form::close() !!}
@endsection @section('script') @endsection