@extends('app') @section('content') @if(Session::has('flash_message'))
{!! Session::get('flash_message') !!}
@endif @if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif
ملفات الشجرة

{!! Form::model($pdf, ['method' => 'PATCH','route' => ['familytree_pdf.update', $pdf->id],'id'=>'form_pdf', "enctype"=>"multipart/form-data"]) !!}
{{--
--}} {{--
--}} {{-- {!! Form::text('title', null, ['class' => 'form-control','id'=>'title','required'=>true, 'readonly'=>'true']) !!}--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- {!! Form::text('file_name', $pdf ? $pdf->pdf : null, ['class' =>--}} {{-- 'form-control', 'readonly' => true, 'id'=>'file_input']) !!}--}} {{--
--}} {{--
--}} {{-- @if(Auth::user()->hasPermission('familytree_pdf-edit'))--}} {{-- --}} {{-- --}} {{-- إختر الملف --}} {{-- --}} {{-- --}} {{-- --}} {{-- تغيير PDF --}} {{-- --}} {{-- --}} {{-- {!! Form::file('pdf', ['class'=>'upload_file_class','data-size_in_bytes' => 10485760, 'accept' => 'application/pdf'])!!}--}} {{--
--}} {{-- الحجم الأقصى المسموح به: 10MB--}} {{--
--}} {{--
--}} {{--
--}} {{-- @endif--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- @if($pdf->pdf)--}} {{-- عرض ملف PDF--}} {{-- @endif --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}}
{{ Form::radio('second_title_flag', 1) }}
{{ Form::radio('second_title_flag', 0) }}
{!! Form::text('second_title', null, ['class' => 'form-control','id'=>'second_title','required'=>true, 'readonly'=>'true']) !!}
{!! Form::text('second_file_name', $pdf ? $pdf->second_pdf : null, ['class' => 'form-control', 'readonly' => true, 'id'=>'second_file_input']) !!}
@if(Auth::user()->hasPermission('familytree_pdf-edit')) إختر الملف  تغيير PDF  {!! Form::file('second_pdf', ['class'=>'second_upload_file_class', 'data-size_in_bytes' => 10485760, 'accept' => 'application/pdf'])!!} @endif
الحجم الأقصى المسموح به: 10MB



@if($pdf->second_pdf) عرض ملف PDF @endif
@if(Auth::user()->hasPermission('familytree_pdf-edit'))
{!! Form::submit('حفظ', ['class' => 'btn btn-primary pull-right']) !!}
@endif
{!! Form::close() !!}
@endsection @section('page_script') @endsection