@extends('backend.template') @push('css') @endpush @section('content')

{{ label('Edit News') }}

@php $url = config('app.url') @endphp
@if ($data->featured_news == 'True') Featured News @else View News @endif
@csrf
{{ createCustomSelect('tbl_economies', 'title', 'economy_id', $data->economies_id, 'Economies Id', 'economics_id', 'form-control select2', 'status<>-1') }}
{{ createCustomSelect('tbl_provinces', 'title', 'province_id', $data->provinces_id, 'Provinces Id', 'provinces_id', 'form-control select2', 'status<>-1') }}
{{ createCustomSelect('tbl_news_type', 'title', 'news_type_id', $data->news_type_id, 'News Type Id', 'news_type_id', 'form-control select2', 'status<>-1') }}
{{ createCustomSelect('tbl_authors', 'title', 'author_id', $data->authors_id, 'Authors Id', 'authors_id', 'form-control select2', 'status<>-1') }}

News

{{ createText('title', 'title', 'Title', '', $data->title) }}
{{ createText('nepali_title', 'nepali_title', 'Nepali Title', '', $data->nepali_title) }}
{{ createPlainTextArea('short_description', '', 'Short Description', $data->short_description) }}
{{ createTextarea('content', 'content ckeditor-classic', 'Content', '', $data->content) }}
{{ createCustomSelect('tbl_newscategories', 'title', 'category_id', $data->newscategories_id, 'Newscategories Id', 'newscategories_id', 'form-control select2', 'status<>-1') }}

Cover Photo

{{ createImageInput('thumb', 'Thumb', '', $data->thumb) }}
{{ createImageInput('image', 'Image', '', $data->image) }}

Status

status == 1)>

Featured News

featured_news == 'True')>
@endsection