@extends('backEnd.master') @section('title') @lang('downloadCenter.content_type') @endsection @section('mainContent') @lang('downloadCenter.content_type') @lang('common.dashboard') @lang('downloadCenter.download_center') @lang('downloadCenter.content_type') @if (isset($type)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'download-center.content-type-update', 'method' => 'POST']) }} @else {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'download-center.content-type-save', 'method' => 'POST']) }} @endif @if (isset($type)) @lang('downloadCenter.edit_type') @else @lang('downloadCenter.add_type') @endif @lang('downloadCenter.name') * @if ($errors->has('name')) {{ @$errors->first('name') }} @endif @lang('downloadCenter.description') {{ isset($type) ? $type->description : old('description') }} @if (isset($type)) @lang('downloadCenter.update') @else @lang('downloadCenter.save') @endif {{ Form::close() }} @lang('downloadCenter.content_type_list') @lang('downloadCenter.name') @lang('downloadCenter.description') @lang('common.action') @if ($types) @foreach ($types as $type) {{ $type->name }} {{ $type->description }} @lang('common.edit') @lang('common.delete') @lang('downloadCenter.delete_type') × @lang('common.are_you_sure_to_delete') @lang('common.cancel') @lang('common.delete') @endforeach @endif @endsection @include('backEnd.partials.data_table_js')