@extends('admin.layouts.layouts') @section('title', 'Edit | Supplier') @section('content')
{!! Form::open([ 'route' => ['supplier.update', $editDetails->id], 'method' => 'POST', 'id' => 'validate_form_add_supplier', 'class' => 'forms-sample', 'enctype' => 'multipart/form-data', ]) !!} {!! Form::hidden('id', $editDetails->id, ['id' => 'editId']) !!}
{{ $errors->first('supplier_type_id') }}
{{ $errors->first('name') }}
{{ $errors->first('mobile') }}
{{ $errors->first('address') }}
{{ $errors->first('gst_no') }}
@php $gstFilePath = 'public/' . ($editDetails->gst_file ?? ''); $gstFileName = $editDetails->gst_file ?? ''; $isPdfGst = Str::endsWith(strtolower($gstFileName), '.pdf'); @endphp @if (!empty($gstFileName))
@if (Storage::exists($gstFilePath)) @if ($isPdfGst) @else GST File @endif @else No Image @endif
@endif
{{ $errors->first('gst_file') }}
{{ $errors->first('tin_no') }}
@php $tinFilePath = 'public/' . ($editDetails->tin_file ?? ''); $tinFileName = $editDetails->tin_file ?? ''; $isPdf = Str::endsWith(strtolower($tinFileName), '.pdf'); @endphp @if (!empty($tinFileName))
@if (Storage::exists($tinFilePath)) @if ($isPdf) @else Tin File @endif @else No Image @endif
@endif
{{ $errors->first('tin_file') }}
Cancel {{ Form::close() }}
@endsection @section('page-js') @endsection