@extends('layouts.master') @section('title') @lang('Title') @endsection @section('css') @endsection @section('content')

post

post
@if ($message = Session::has('success'))
{{ $message }}
@endif
@method('PUT') {{ csrf_field() }}
@if ($errors->has('title'))
{{ $errors->first('title') }}
@endif
@if ($errors->has('summary'))
{{ $errors->first('summary') }}
@endif
@if ($errors->has('description'))
{{ $errors->first('description') }}
@endif
@if ($errors->has('post_cat_id'))
{{ $errors->first('post_cat_id') }}
@endif
@if ($errors->has('status'))
{{ $errors->first('status') }}
@endif
@if(!empty($post->filename)) @if(in_array(pathinfo($post->filename, PATHINFO_EXTENSION), ['jpg', 'jpeg', 'png', 'gif'])) filename")}}" alt="Example Image" style="max-width: 25%; height: auto;"> @else filename")}}" download>Download {{ basename($post->filename) }} @endif @endif @if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
@endsection @section('script') @endsection