@extends('layouts.settings') @section('title', __('lecturing.edit')) @section('content_settings')
@if (request('action') == 'delete' && $lecturing) @can('delete', $lecturing)
{{ __('lecturing.delete_for_friday') }}

{{ $lecturing->title }}

{{ $lecturing->description }}

{!! $errors->first('lecturing_id', ':message') !!}

{{ __('lecturing.delete_confirm_for_friday') }}
@endcan @else
{{ $lecturing->audience }} {{ __('lecturing.edit_for_friday') }}
{{ Form::model($lecturing, ['route' => ['friday_lecturings.update', $lecturing], 'method' => 'patch']) }}
{!! FormField::text('date', [ 'required' => true, 'label' => __('lecturing.date'), 'class' => 'date-select', ]) !!}
{!! FormField::text('start_time', ['required' => true, 'label' => __('lecturing.time'), 'placeholder' => '12:15']) !!}
{!! FormField::text('lecturer_name', ['required' => true, 'label' => __('lecturing.friday_lecturer_name')]) !!} {!! FormField::text('title', ['label' => __('lecturing.title')]) !!}
{!! FormField::text('imam_name', ['required' => true, 'label' => __('lecturing.imam_name')]) !!}
{!! FormField::text('muadzin_name', ['required' => true, 'label' => __('lecturing.muadzin_name')]) !!}
{!! FormField::text('video_link', ['label' => __('lecturing.video_link')]) !!}
{!! FormField::text('audio_link', ['label' => __('lecturing.audio_link')]) !!}
{!! FormField::textarea('description', ['label' => __('lecturing.description')]) !!}
{{ Form::close() }}
@endif @endsection @section('styles') {{ Html::style(url('css/plugins/jquery.datetimepicker.css')) }} @endsection @push('scripts') {{ Html::script(url('js/plugins/jquery.datetimepicker.js')) }} @endpush @section('styles') {{ Html::style(url('css/plugins/jquery.datetimepicker.css')) }} @endsection @push('scripts') {{ Html::script(url('js/plugins/jquery.datetimepicker.js')) }} @endpush