@extends('socialite::layouts.admin') @section('content')
@include('flash::message')

{{ $mode.' '.trans('socialite::admin.announcement') }}

@if($mode=="create")
@else @endif {{ csrf_field() }}
{{ Form::label('title', trans('socialite::admin.title'), ['class' => 'col-sm-2 control-label']) }}
@if($mode == "create") {{ Form::text('title',null,['class' => 'form-control']) }} @else {{ Form::text('title', $announcement->title, ['class' => 'form-control']) }} @endif @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{{ Form::label('description', trans('socialite::common.description'), ['class' => 'col-sm-2 control-label']) }}
@if($mode =="create") {{ Form::textarea('description', null ,['class' => 'form-control']) }} @else {{ Form::textarea('description', $announcement->description, ['class' => 'form-control']) }} @endif @if ($errors->has('description')) {{ $errors->first('description') }} @endif
{{ Form::label('start_date', trans('socialite::admin.start_date'), ['class' => 'col-sm-4 control-label']) }}
@if($mode=="create") @else @endif
@if ($errors->has('start_date')) {{ $errors->first('start_date') }} @endif
{{ Form::label('end_date', trans('socialite::admin.end_date'), ['class' => 'col-sm-4 control-label']) }}
@if($mode=="create") @else @endif
@if ($errors->has('end_date')) {{ $errors->first('end_date') }} @endif
@if($mode=="create") @else @endif
@endsection