@extends('backend.layouts.app') @section('title', __('labels.backend.sponsors.title').' | '.app_name()) @section('content')
@if(isset($sponsor))

@lang('labels.backend.sponsors.edit')

@else

@lang('labels.backend.sponsors.create')

@endif
@if(isset($sponsor)) {!! Form::model($sponsor, ['method' => 'PUT', 'route' => ['admin.sponsors.update', $sponsor->id], 'files' => true,]) !!} @else {!! Form::open(['method' => 'POST', 'route' => ['admin.sponsors.store'], 'files' => true,]) !!} @endif
{!! Form::label('name', trans('labels.backend.sponsors.fields.name').' *', ['class' => 'control-label']) !!} {!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.sponsors.fields.name'), 'required' => false]) !!}
{!! Form::label('link', trans('labels.backend.sponsors.fields.link'), ['class' => 'control-label']) !!} {!! Form::text('link', old('link'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.sponsors.fields.link'), 'required' => false]) !!}
{!! Form::label('logo', trans('labels.backend.sponsors.fields.logo'), ['class' => 'control-label d-block']) !!} @if(isset($sponsor) && ($sponsor->logo != null)) {!! Form::file('logo', ['class' => 'form-control w-75 d-inline-block', 'placeholder' => '', 'accept' => 'image/jpeg,image/gif,image/png']) !!} @else {!! Form::file('logo', ['class' => 'form-control d-inline-block', 'placeholder' => '']) !!} @endif
{!! Form::submit(trans('strings.backend.general.app_save'), ['class' => 'btn mt-auto btn-danger']) !!}
{!! Form::close() !!}
@can('category_delete') @if ( request('show_deleted') != 1 ) @endif @endcan @if( request('show_deleted') == 1 ) @else @endif
@lang('labels.general.sr_no') @lang('labels.backend.sponsors.fields.name') @lang('labels.backend.sponsors.fields.logo') @lang('labels.backend.sponsors.fields.link') @lang('labels.backend.sponsors.fields.status')  @lang('strings.backend.general.actions')  @lang('strings.backend.general.actions')
@stop @push('after-scripts') @endpush