@extends('admin.layouts.main') @section('content')

{{ @$data ? 'Edit' : 'Add' }} Affiliate Link

@include('admin.includes.alert')
@csrf @if( @$data ) @method('PATCH') @endif
@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('url')) {{ $errors->first('url') }} @endif
image_url == null ? 'required' : '' }}> @if ($errors->has('image')) {{ $errors->first('image') }} @endif
@endsection @push('script') @endpush