@extends('layouts.admin.index') @section('content')
@csrf
@if($errors->has('division_id')) {{ $errors->first('division_id') }} @endif
@php $where = [] ; if(isset($office)){ $where[] = ['division_id','=',$office->division_id]; } @endphp @if($errors->has('district_id')) {{ $errors->first('district_id') }} @endif
@if($errors->has('name')) {{ $errors->first('name') }} @endif
@if($errors->has('short_name')) {{ $errors->first('short_name') }} @endif
@if($errors->has('location')) {{ $errors->first('location') }} @endif
@if($errors->has('website')) {{ $errors->first('website') }} @endif
@if($errors->has('facebook')) {{ $errors->first('facebook') }} @endif
@if($errors->has('youtube')) {{ $errors->first('youtube') }} @endif
@if($errors->has('twitter')) {{ $errors->first('twitter') }} @endif
@if($errors->has('linkedin')) {{ $errors->first('linkedin') }} @endif
@php $required = 'required'; if(isset($office)){ if(checkExist($office->logo)){ $required = '' ; } } @endphp {!! uploadedFile(isset($office)?$office:'',isset($office)?$office->logo:'','create',$required,'logo') !!} @if($errors->has('logo')) {{ $errors->first('logo') }} @endif
@endsection @section('scripts') @parent @endsection