@extends('layouts.admin') @section('css') @endsection @section('content') @include('layouts.partials.messages')
{{ Form::open(['route' => $data->id ? ['gift-cards.update',$data->id] : 'gift-cards.store', 'method' => 'POST' ,'id' => 'ajaxSave'])}}
{{Form::label('category_name', __('gift_card.category_name'), ['class' => 'control-label'])}}
{{Form::text('category_name',$data->category_name ?? '', ['class' => 'form-control'])}}
{{ Form::file('image[]', ['class' => 'gallery', 'id' => 'banners', 'accept' => 'image/*']) }}

{{ __('small_banner.note-size') }}

@if (isset($data->images) && $data->images != '') @php $images = json_decode($data->images); @endphp @if (count($images) > 0) @foreach ($images as $key => $img)
{{-- @if (count($images) > 1)--}} {{-- @endif--}}
@endforeach @endif @endif
{{Form::label('is_active', __('gift_card.status'), ['class' => 'control-label'])}}
  • {{ Form::submit( __('common.save'), array('class' => 'btn btn-primary width80'));}}
@if($data->id) @method('PUT') @endif {{ Form::close()}}
@endsection @section('script') @endsection